Suppose, I have a product x with different weight and price, for example
250 mg - 200 rs
500 mg- 350 rs
1 Gm- 500 rs
How can I insert this product on my website which is on magento 2.2, so that visitor can see all weight category of product with their corresponding price?
Solved! Go to Solution.
You just need to create one product attributes called, product_mass. Set Different options for those attributes. like, 250mg, 500mg etc..
Stores -> Attributes -> Product
Set those Attribute Scope as Global, and Assigned to attribute set.
Create new configurable product from,
Catalog -> Products,
Click on Right side Button Arrow after Add Products and choose Configurable product,
Now On Create configuration section from edit product page,
Select your attribute called product_mass,
Set Option from list of attributes options,
Now at 3rd step, you just need to select price section and click the Apply unique prices by attribute to each SKU and set different price for each sku.
You just need to create one product attributes called, product_mass. Set Different options for those attributes. like, 250mg, 500mg etc..
Stores -> Attributes -> Product
Set those Attribute Scope as Global, and Assigned to attribute set.
Create new configurable product from,
Catalog -> Products,
Click on Right side Button Arrow after Add Products and choose Configurable product,
Now On Create configuration section from edit product page,
Select your attribute called product_mass,
Set Option from list of attributes options,
Now at 3rd step, you just need to select price section and click the Apply unique prices by attribute to each SKU and set different price for each sku.
Thank you Rakesh Jesadiya,
This method work for me.
One more thing I want to ask, suppose I want to apply discount of 10% on all products having price more then 500 rs. Then how should I have to do ?
Hey,
Your method is working only for first product. Whenever I tried to apply this attribute on my other products it make my product disable from store front view.
How can I resolve this issues?