I am using Magento 2.2.6 Open Source Edition
, a single product has been selected for 3 websites in Product in Websites
section, I would like to have different quantities of the product for each website.
2 Answers
Its very simple, open your product, select website store scope as per screenshot, now you can fill different quantities for each store/website.
-
as you can see the scop of the Quantity is global so changing it affects all the websites and store-views, the question says how to have different Quantities of the product for each website. Jul 1, 2020 at 13:51
-
Yes, You can change in db directly (I don't recommend it) you need to change the field is_global to 2 from the table catalog_eav_attribute for the record with the id the same as your attribute has in the eav_attribute table.– PrahladJul 2, 2020 at 1:26
You can change that first in Stores > Attributes > Product > Attribute Code: quantity_and_stock_status and edit the scope to Store View or in your case Website. See the following screenshot: Accept the solution if its works for you.
-
That is the scope of status and doesn't work as solution for my question, it has no affect on the Quantity field. Jul 2, 2020 at 7:06
-
1I have changed Stores > Attributes > Product > Attribute Code: quantity_and_stock_status to the website but the Quantity field and stock_status still shown as the global and changing value of quantity for one website changes the value of second website. Jul 2, 2020 at 8:06
-
@ReshadZazai I am also facing "changing value of quantity for one website changes the value of second website." issue. Did you get any solution for this ? Sep 28, 2021 at 11:35
-