Shopify themes, liquid, logos, and UX
I am looking for some help in getting my Cart Subtotal to display correctly when there are non-taxable items (gift cards) in the cart
Currently the Cart Subtotal is shown with the following simple code:
{{ cart.total_price | times:1.1 | money }}
This works for most cases, but obviously shows an incorrect value when there are gift cards in the cart
Does anybody have any ideas on how I can code the subtotal to calculate the sum of all taxable cart lines, times it by the tax rate, add the sum of all non-taxable cart lines and display the result?
I.e. Subtotal = (total of all taxable lines x 1.1) + (total of all non-taxable lines)
User | RANK |
---|---|
163 | |
142 | |
74 | |
66 | |
56 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023