Commits

Maciej Wiśniowski committed 0a270c8

fixed is_select_field checking

  • Participants
  • Parent commits 0dc5b39

Comments (0)

Files changed (4)

lfstheme/templates/lfs/cart/added_to_cart_items.html

                     {% for property in cart_item.obj.get_properties %}
                         <div>
                             {{ property.title }}: {{ property.value }} {{ property.unit|safe }}
-                            {% if property.is_select_field and property.display_price %}
+                            {% if property.obj.is_select_field and property.display_price %}
                                 ({{ property.price|currency }})
                             {% endif %}
                         </div>

lfstheme/templates/lfs/cart/cart_inline.html

                             {% for property in cart_item.obj.get_properties %}
                                 <div>
                                     {{ property.title }}: {{ property.value }} {{ property.unit|safe }}
-                                    {% if property.is_select_field and property.display_price %}
+                                    {% if property.obj.is_select_field and property.display_price %}
                                         ({{ property.price|currency }})
                                     {% endif %}
                                 </div>

lfstheme/templates/lfs/checkout/checkout_cart_inline.html

                     {% for property in cart_item.obj.get_properties %}
                         <div>
                             {{ property.title }}: {{ property.value }} {{ property.unit|safe }}
-                            {% if property.is_select_field and property.display_price %}
+                            {% if property.obj.is_select_field and property.display_price %}
                                 ({{ property.price|currency }})
                             {% endif %}
                         </div>

lfstheme/templates/lfs/order/lfs_order_tmpl.html

                     {% for property in item.get_properties %}
                         <div>
                             {{ property.title }} : {{ property.value }} {{ property.unit|safe }}
-                            {% if property.is_select_field and property.display_price %}
+                            {% if property.obj.is_select_field and property.display_price %}
                                 ({{ property.price|currency:request}})
                             {% endif %}
                         </div>