P5-6491 use market instead of territory for price calculations (#37)
This commit is contained in:
+3
-3
@@ -56,7 +56,7 @@ def wallpaper_price(
|
||||
|
||||
sqm = (width / 100) * (height / 100)
|
||||
|
||||
if market.territory == "US":
|
||||
if market.name == "US":
|
||||
min_sqm = 2
|
||||
else:
|
||||
min_sqm = 1
|
||||
@@ -101,7 +101,7 @@ def canvas_cm2_price(cm2):
|
||||
|
||||
|
||||
def package_price(product_group, width, height, market):
|
||||
if market.territory == "US":
|
||||
if market.name == "US":
|
||||
if product_group in ["canvas", "poster"]:
|
||||
if width > 110:
|
||||
return 150
|
||||
@@ -411,7 +411,7 @@ def framed_print_price(
|
||||
},
|
||||
}
|
||||
|
||||
price += extra_shipping_price[sku].get(market.territory, 0)
|
||||
price += extra_shipping_price[sku].get(market.name, 0)
|
||||
|
||||
price *= market.price_adjustments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user