Jump to content

(SOLUCIONADO) Aumentar y disminuir precios masivamente.


Recommended Posts

Gracias,algún manual sencillo y en castellano? 

si,ese es exactamente el que tengo,pero no me hace nada.Alguna solución sobre el módulo?

Link to comment
Share on other sites

 

Los impactos en el precio de los atributos estan en 

ps_attribute_impact

De momento ntenté hacer con el ejemplo que ponia y me sale lo siguiente y yo ahí ya no entiendo...

Error

consulta SQL:

 

Ps_product_shop ACTUALIZACIÓN SET price = price * 1.20

 

MySQL ha dicho: dot.gif

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ps_product_shop ACTUALIZACIÓN SET price = price * 1.20' at line 1i

Link to comment
Share on other sites

De momento ntenté hacer con el ejemplo que ponia y me sale lo siguiente y yo ahí ya no entiendo...

Error

consulta SQL:

 

Ps_product_shop ACTUALIZACIÓN SET price = price * 1.20

 

MySQL ha dicho: dot.gif

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ps_product_shop ACTUALIZACIÓN SET price = price * 1.20' at line 1i

 

Creo que solo tienes que poner:

 

UPDATE SET price=price*1.20

 

O solo SET price=price*1.20.

 

Ayer hice una prueba y funciono, pero puse 100€ en un precio y al cambiarlo a *1.20 me hizo 144€ y no 120€..

Link to comment
Share on other sites

De momento ntenté hacer con el ejemplo que ponia y me sale lo siguiente y yo ahí ya no entiendo...

Error

consulta SQL:

 

Ps_product_shop ACTUALIZACIÓN SET price = price * 1.20

 

MySQL ha dicho: dot.gif

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ps_product_shop ACTUALIZACIÓN SET price = price * 1.20' at line 1i

 

 

Tienes que hacerlo como se indica en el tutorial

UPDATE ps_product_shop SET price = price*1.20
UPDATE ps_product SET price = price*1.20
Link to comment
Share on other sites

Creo que solo tienes que poner:

 

UPDATE SET price=price*1.20

 

O solo SET price=price*1.20.

 

Ayer hice una prueba y funciono, pero puse 100€ en un precio y al cambiarlo a *1.20 me hizo 144€ y no 120€..

Gracias pero tampoco me funciona,no se si estaré haciendo algo mal.

UPDATE SET price=price*1.20

 

MySQL ha dicho: dot.gif

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET price=price*1.20' at line 1 me funciona,no se si estaré haciendo algo mal.

Si pongo lo otro:

SET price=price*1.20

 

MySQL ha dicho: dot.gif

#1193 - Unknown system variable 'price' 

Link to comment
Share on other sites

 

Tienes que hacerlo como se indica en el tutorial

UPDATE ps_product_shop SET price = price*1.20
UPDATE ps_product SET price = price*1.20

Gracias,pero me sigue saliendo igual:

consulta SQL:

 

UPDATE ps_product_shop SET price = price*1.20

UPDATE ps_product SET price = price*1.20

 

MySQL ha dicho: dot.gif

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE ps_product SET price = price*1.20' at line 2 

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...