Use sku instead to see if it is a framed prints inquiry product (#40)

This commit is contained in:
Niklas Fondberg
2021-05-27 14:30:35 +02:00
committed by GitHub
parent 0650759ec4
commit 3969bc54df
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -470,7 +470,7 @@ def inquiry_price(
rounded=False,
inc_vat=False,
)
elif inquiry.product_group == "poster":
elif inquiry.product_group == "poster" and not sku:
price = poster_price(
width,
height,
@@ -482,7 +482,8 @@ def inquiry_price(
rounded=False,
inc_vat=False,
)
elif inquiry.product_group == "framed-print":
# Framed prints product group for inquires will be poster until addToCart but always has sku
elif sku:
price = framed_print_price(
sku=sku,
market=inquiry.market,