fix: unbound error in product configurator

This commit is contained in:
Shivam Mishra
2020-08-06 16:47:43 +05:30
parent 3adeab45ce
commit 61b9727fa2

View File

@@ -261,12 +261,14 @@ def get_next_attribute_and_values(item_code, selected_attributes):
if exact_match:
data = get_product_info_for_website(exact_match[0])
product_info = data.product_info
if product_info:
product_info["allow_items_not_in_stock"] = cint(data.cart_settings.allow_items_not_in_stock)
if not data.cart_settings.show_price:
product_info = None
else:
product_info = None
product_info["allow_items_not_in_stock"] = cint(data.cart_settings.allow_items_not_in_stock)
return {
'next_attribute': next_attribute,