Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spree prices based on weight

Is it possible to implement prices based on weight in spree commerce. My store will be selling vegetables and various types of meat. I want the customer to have an option of selecting weight e.g when buying beef one has the option of selecting the weight in kilograms and the price should adjust accordingly. Is this possible?

like image 909
vickris Avatar asked Dec 14 '25 18:12

vickris


1 Answers

In Spree you can archive this by adding the weight in your option types. And you can create a variants like wise and each variant has it's different price. So, without any code change you can fulfill your requirement. e.g In you case you can create a beef as product with option type Weight. after this you can create a variant like 250 GM, 500 GM, 750 GM etc with different prices. Then on you product page customer can select the weight as option and price of you order will be calculated on the basis of the selected variant and quantity.

like image 126
milind phirake Avatar answered Dec 18 '25 07:12

milind phirake



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!