콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
1 회신
4591 화면

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
4월 23
2410
1
11월 22
3679
2
4월 18
9423
2
11월 24
2278
0
2월 25
1164