Jump to content

[1.5.3.1] Big problem with Product quantity


Recommended Posts

Hello!

 

I'm using a PHP script to update product quantities in my store.

 

This script uses this SQL query:

 

$query_upd = "UPDATE ps_product SET quantity='5' WHERE id_product='$id_prod'";
$result_upd = mysql_query($query_upd)or die(mysql_error());

 

Query works well and i have no error. Checking the mysql field on my database is correctly set to "5" or "0" (in case of 0 quantity), but when i check the item on my back-end, the quantity is not changed.

 

For example if i set quantity as 0, in my back-end the item remains with quantity = 5.

 

How can i solve this problem?

 

Thanks in advance

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
×
×
  • Create New...