Hello all,
I am trying to create a wholesale website where specific customers get an automatic discount in Debut. I have got it working where the product price with discount will show on the product page and cart. However, if you change the quantity of the items in the cart the price resets to the default value with no discount. At checkout the discount is still applied and everything is correct but I would like to have the cart page show the correct pricing, even when changing quantity.
Below are pictures of the before and after changing the quantity.
Code of price I am trying to show instead of the default price
{{ product_price | money }}
Code of my cart-template.liquid section:
I think it has to do with looping and something relating to this section.
Show More
{% include 'dealer-25-check' %} {% include 'dealer-35-check' %} {% include 'calc-cart-total-price' %}
# {{ 'cart.general.title' | t }}{{ 'cart.general.continue_shopping' | t }}
{%- comment -%} Codes for automatic discounts {%- endcomment -%} {% if is_dealer_25 %} {% endif %} {% if is_dealer_35 %} {% endif %}
# {{ 'cart.general.title' | t }}
{{ 'cart.general.empty' | t }}
{{ 'cart.general.cookies_required' | t }}
{{ 'general.404.link' | t }}{% include 'icon-arrow-right' %}