Mass Actions not affecting Variants

  • Posts: 20
  • Thank you received: 0
10 years 2 weeks ago #151012

Hello,

I am trying to use the mass actions to initialize all variants Quantity to 0 when a new product is created. The mass actions function seems to set the parent Quantity fine, but does not affect the variant Quantity. Is this even possible?

Or, is there a simpler way to quickly change the Quantity for variants to 0 without having to go to each variant page separately (i.e. if you could change the quantity from the variant list view that would be fantastic).

thanks,

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Chrome

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

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
10 years 2 weeks ago #151044

Hi,

It depends on how you configured your mass action.
I suppose that you configured it with a trigger "after a product is created". However, that trigger is not run for each variant of a product because it would heavily reduce the performances of the system when saving a product with a lot of variants.
Instead, you should use a trigger "every hour" for example and set the product_quantity to 0 for all the variants with a product_quantity different from 0.
You can also run such mass action manually when you need it instead of using a trigger.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum