change price of product based on cart count

Stu-organics
Tourist
15 0 2

I would like to change the price based on the cart count number.

I have the following by default in the template

 

   <div {% if hasDiscount %}class="hide" {% endif %}data-cart-item-regular-price-group>
                      <dt>
                        <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
                      </dt>
                      <dd data-cart-item-regular-price>{{ item.original_price | money }}
                      </dd>
                    </div>

 

To reduce each item by $1 if the cart count is 9 or more, I think I want to add something like

{% if cart.item_count <= 9 %} {{ item.original_price | money | minus: 1 }} {% endif %}

 

Look foward to some help

 

0 Likes