Change stock levels

  • Posts: 33
  • Thank you received: 2
  • Hikashop Business
11 years 7 months ago #138830

I need to change the stock levels for a bunch of products in the mysql database to unlimited

I'm worse than a newbie with working with the database. I need to change every product with the word manual to unlimited.

UPDATE `ifixma5_shopdata`.`jos_hikashop_product` SET `product_quantity` = '???' WHERE `jos_hikashop_product`.`product_id` =547;

Not sure what to place in the '???" for unlimited

Not sure how to format the syntax to have this run through the entire data base and only select products with manual in it.

Please be kind with your help, like a cut and paste mysql query string would be awesome.


HikaShop Business 2.6.0

PHP Version 5.6.16
Web Server Apache

Joomla! 3.4.8 Stable [ Ember ] 24-December-2015 19:30 GMT

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #138870

Hi,

The value for unlimited quantity is "-1".
Actually in HikaShop there is the mass actions, they allow you to do this kind of things without writing any SQL requests.

You can reach them via the menu System > Massaction
www.hikashop.com/support/documentation/i...massaction-form.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum