[Skip to main content](#vessel-content)

#   Mass Actions not affecting Variants

##

- **[slickgj](/forum/user/829-slickgj "View slickgj's Profile")**
- [![slickgj's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/829-slickgj "View slickgj's Profile") Topic Author
- [ Offline](/forum/user/829-slickgj)

Less More

- Posts: 20
- Thank you received: 0
-
-

12 years 6 months ago [\#151012](#151012) by [slickgj](/forum/user/829-slickgj "View slickgj's Profile")  *[Mass Actions not affecting Variants](/forum/44-mass-actions/867211-mass-actions-not-affecting-variants#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")* was created by *[slickgj](/forum/user/829-slickgj "View slickgj's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84NjcyMTEtbWFzcy1hY3Rpb25zLW5vdC1hZmZlY3RpbmctdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

12 years 6 months ago [\#151044](#151044) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mass Actions not affecting Variants](/forum/44-mass-actions/867211-mass-actions-not-affecting-variants#151044 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84NjcyMTEtbWFzcy1hY3Rpb25zLW5vdC1hZmZlY3RpbmctdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.086 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
