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

#   Update stock only within a specific manufacture\_id

##

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

10 years 3 weeks ago -  10 years 3 weeks ago [\#254130](#254130) by [river](/forum/user/9591-river "View river's Profile")  *[Update stock only within a specific manufacture\_id](/forum/44-mass-actions/887253-update-stock-only-within-a-specific-manufacture-id#254130 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 7  I have many products with different brands  Brand A Brand B Brand C  My stock CSV update file contains &quot;only&quot; product&#95;code, and product&#95;quantity. It contains product&#95;codes within both Brand A, Brand B and Brand C  I only want to uppdate the quanity for the products with Brand A.  Brand A have manufacture&#95;id: 781  Therefore I havel selected under filters: product&#95;manufacture&#95;id = 781  Se image below  So when I process the Mass action it still updates the quanity of the products within Brand B and Brand C.(actually every product&#95;code in the csv file)  How can I force mass action to only update the product&#95;code from the CSV file that goes within manufacture&#95;id: 781) ?  Hope my explenation makes sense.")* was created by *[river](/forum/user/9591-river "View river's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 7

I have many products with different brands

Brand A
Brand B
Brand C

My stock CSV update file contains "only" product_code, and product_quantity.
It contains product_codes within both Brand A, Brand B and Brand C

I only want to uppdate the quanity for the products with Brand A.

Brand A have manufacture_id: 781

Therefore I havel selected under filters: product_manufacture_id = 781

Se image below

[ ![screen&#95;mass&#95;action&#95;import.png](/forum/attachment/34361) ](/forum/attachment/34361 "...ion&#95;import.png")

So when I process the Mass action it still updates the quanity of the products within Brand B and Brand C.(actually every product_code in the csv file)

How can I force mass action to only update the product_code from the CSV file that goes within manufacture_id: 781) ?

Hope my explenation makes sense.

- [ ![screen&#95;mass&#95;action&#95;import.png](/forum/attachment/34361) ](/forum/attachment/34361 "...ion&#95;import.png") [ ](/forum/attachment/34361?download=1 "...ion&#95;import.png")

Last edit: 10 years 3 weeks ago by [river](/forum/user/9591-river "View river's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84ODcyNTMtdXBkYXRlLXN0b2NrLW9ubHktd2l0aGluLWEtc3BlY2lmaWMtbWFudWZhY3R1cmUtaWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 3 weeks ago [\#254143](#254143) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Update stock only within a specific manufacture\_id](/forum/44-mass-actions/887253-update-stock-only-within-a-specific-manufacture-id#254143 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 7  I have many products with different brands  Brand A Brand B Brand C  My stock CSV update file contains &quot;only&quot; product&#95;code, and product&#95;quantity. It contains product&#95;codes within both Brand A, Brand B and Brand C  I only want to uppdate the quanity for the products with Brand A.  Brand A have manufacture&#95;id: 781  Therefore I havel selected under filters: product&#95;manufacture&#95;id = 781  Se image below  So when I process the Mass action it still updates the quanity of the products within Brand B and Brand C.(actually every product&#95;code in the csv file)  How can I force mass action to only update the product&#95;code from the CSV file that goes within manufacture&#95;id: 781) ?  Hope my explenation makes sense.")*

Hi,

There is no option to do that.

The CSV filter get the products data from the CSV, saves it in the database, and them returns the elements so that they can be filtered further down if necessary so that the actions of your mass action apply only to them.

What you want to do is not supported.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84ODcyNTMtdXBkYXRlLXN0b2NrLW9ubHktd2l0aGluLWEtc3BlY2lmaWMtbWFudWZhY3R1cmUtaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

10 years 3 weeks ago -  10 years 3 weeks ago [\#254305](#254305) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Update stock only within a specific manufacture\_id](/forum/44-mass-actions/887253-update-stock-only-within-a-specific-manufacture-id#254305 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 7  I have many products with different brands  Brand A Brand B Brand C  My stock CSV update file contains &quot;only&quot; product&#95;code, and product&#95;quantity. It contains product&#95;codes within both Brand A, Brand B and Brand C  I only want to uppdate the quanity for the products with Brand A.  Brand A have manufacture&#95;id: 781  Therefore I havel selected under filters: product&#95;manufacture&#95;id = 781  Se image below  So when I process the Mass action it still updates the quanity of the products within Brand B and Brand C.(actually every product&#95;code in the csv file)  How can I force mass action to only update the product&#95;code from the CSV file that goes within manufacture&#95;id: 781) ?  Hope my explenation makes sense.")*

OK tnx for reply.

Anyway I have a new question.

I.e: I have a main product with 3 variants. All of the 3 variants have "product quanity: Unlimeted".

But the quanity of the main products has been set to "0", so my customers get the message in the front-end that it's sold out.

How can I force the product quantity of the variants to override the quantity of the main product ?

So that my customers in the front-end can buy the product even tough the quanity of the main product is set to "0".

The problem is that sometimes I forget to remove quantity"0" from the main products after I have updated the vaules of the variants.

Last edit: 10 years 3 weeks ago by [river](/forum/user/9591-river "View river's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84ODcyNTMtdXBkYXRlLXN0b2NrLW9ubHktd2l0aGluLWEtc3BlY2lmaWMtbWFudWZhY3R1cmUtaWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 3 weeks ago [\#254359](#254359) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Update stock only within a specific manufacture\_id](/forum/44-mass-actions/887253-update-stock-only-within-a-specific-manufacture-id#254359 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 7  I have many products with different brands  Brand A Brand B Brand C  My stock CSV update file contains &quot;only&quot; product&#95;code, and product&#95;quantity. It contains product&#95;codes within both Brand A, Brand B and Brand C  I only want to uppdate the quanity for the products with Brand A.  Brand A have manufacture&#95;id: 781  Therefore I havel selected under filters: product&#95;manufacture&#95;id = 781  Se image below  So when I process the Mass action it still updates the quanity of the products within Brand B and Brand C.(actually every product&#95;code in the csv file)  How can I force mass action to only update the product&#95;code from the CSV file that goes within manufacture&#95;id: 781) ?  Hope my explenation makes sense.")*

Hi,

The quantity of the variants override the quantity of the main product, unless you don't set a quantity in the variants and leave it to unlimited. In that case, it uses the quantity of the main product instead.
That's how the system works.
Having it work like you want would prevent other merchants to have products with the global quantity in the main product for all the variants and no quantity for each variant.
Changing that for yourself is not impossible but not easy as all the system is made to work like it does now.
You'll need to have a developer modify the code to be able to do that.
The first place to look would be the checkVariants function of the file administrator/components/com_hikashop/classes/product.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84ODcyNTMtdXBkYXRlLXN0b2NrLW9ubHktd2l0aGluLWEtc3BlY2lmaWMtbWFudWZhY3R1cmUtaWQ/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.050 seconds

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