تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4566 أدوات العرض

Hi guys, 

is it, and if so how, possible to calculate the price extra for a product variant related to an attribute depending on the custom value entered?

e.g.: "cm height" is custom value attribute and every cm should add a price extra of 2$. 

my first idea was putting something at price extra like "=2* custom value" but i couldn't figure out how this should work. 

anyone with a smart idea, preferrable without necessity of 3rd party module?


thx


الصورة الرمزية
إهمال
أفضل إجابة

Here is some paid module and this may solve your problem

  1. Imagine, you are manufacturing tables made to order. The possible width of those tables is from 40cm to 80cm and you find it rational to produce only even-number-width tables (42cm, 44cm, etc.)
  2. The Public (base template) price is $100
  3. Each 1cm adds $2.15 to this price.
  4. Besides, you find it profitable to have a 0.03% increase for each cm, and 1% for each unit disregarding the width
  5. Thus, you go to the product template "Table" and press the button "Num Attributes" (the tab "Variants")
  6. In the field "Select or create new attribute" you choose "Width". You enter '' cm" in the "Comment" field. You have the line in the configuration table: 40 – 80 – 2 - Formula
  7. The formula for Price Extra = Attribute Value * 2.15 + 0
  8. The formula for Price Multiplier = Attribute Value * 0.03 + 1
  9. You press "Generate" and have the list of all feasible tables. The price for 54cm table, for example, is $218.72 = 100 * (54*0.03+1) + 54*2.15

https://apps.odoo.com/apps/modules/11.0/variants_bridge_pricing_numerical/

also see below module too

https://apps.odoo.com/apps/modules/9.0/variant_price_extra/

This module allows you to set and manage extra price for each product's variant separately.

You can simply set the extra price to be applied on a product's variant, regardless of it's attribute and attribute value.

If you find this helpful vote for me
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 23
2379
1
نوفمبر 22
3644
2
أبريل 18
9394
2
نوفمبر 24
2240
0
فبراير 25
1146