- Posts: 20
- Thank you received: 0
Mass Actions not affecting Variants
12 years 5 months ago #151012
by slickgj
Mass Actions not affecting Variants was created by slickgj
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
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.
12 years 5 months ago #151044
by nicolas
Replied by nicolas on topic Mass Actions not affecting Variants
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.
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.173 seconds