Jump to content

Simple product quantity update script needed


KariL

Recommended Posts

I need a simple product quantity update script that doesn't need to upload csv or any other silly maneuvers. Here is an example:

 

post-805220-0-47679900-1409390343_thumb.jpg

 

I'm using similar in my current non-presta store and it works. I did try to modify it but it's not working.

mysql_query ("UPDATE $ps_product SET quantity='$s[1]', WHERE reference='$s[0]'") or die (mysql_error ());

Obviously this is a simple job for someone who is familiar with mysql and php commands.

Link to comment
Share on other sites

I need a simple product quantity update script that doesn't need to upload csv or any other silly maneuvers. Here is an example:

 

attachicon.gifexample-update-qty.jpg

 

I'm using similar in my current non-presta store and it works. I did try to modify it but it's not working.

mysql_query ("UPDATE $ps_product SET quantity='$s[1]', WHERE reference='$s[0]'") or die (mysql_error ());

Obviously this is a simple job for someone who is familiar with mysql and php commands.

Ok so how many products do you want to update ? and would each product have a different or same quantity ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...