topic Need to output taxes or a figure equal to subtotal minus discounts on the cart page in Ecommerce Marketing
https://community.shopify.com/c/Ecommerce-Marketing/Need-to-output-taxes-or-a-figure-equal-to-subtotal-minus/m-p/665940#M32877
<P>I'm currently using the ULTIMATE Cart Drawer app. The cart includes a subtotal line "{{original_total_price_formatted}}", a discount line "{{{total_discount_formatted}}}" and a total line "{{total_price_formatted}}".</P><P> </P><P><SPAN>The problem, however, is that the total line includes the taxes, which are not listed in the cart. So inevitably the total number is wrong. For example, if the subtotal is $100 and the discount is $10, the total is appearing as $96.30 (presuming a 7% tax rate). But since the taxes are not shown in the app, it simply looks like the math is wrong, which is very confusing to the customer.</SPAN></P><P><SPAN><BR />To resolve this, I believe I need to either output the taxes in the cart (to show the customer where the missing money is coming from) or output the difference between the subtotal and the discount that excludes the taxes. However, I cannot figure out how to do either of these things. I tried to code an equation {{original_total_formatted | minus: total_discount_formatted}} but this does not work. I am not sure if I have written the equation incorrectly or if this is simply inappropriate for the app, which I believe is coded in handlebar.js</SPAN></P><P> </P><P><SPAN>Any help would be greatly appreciated</SPAN></P><P> </P><P> </P>Mon, 24 Feb 2020 05:21:57 GMTdozewavelength2020-02-24T05:21:57ZNeed to output taxes or a figure equal to subtotal minus discounts on the cart page
https://community.shopify.com/c/Ecommerce-Marketing/Need-to-output-taxes-or-a-figure-equal-to-subtotal-minus/m-p/665940#M32877
<P>I'm currently using the ULTIMATE Cart Drawer app. The cart includes a subtotal line "{{original_total_price_formatted}}", a discount line "{{{total_discount_formatted}}}" and a total line "{{total_price_formatted}}".</P><P> </P><P><SPAN>The problem, however, is that the total line includes the taxes, which are not listed in the cart. So inevitably the total number is wrong. For example, if the subtotal is $100 and the discount is $10, the total is appearing as $96.30 (presuming a 7% tax rate). But since the taxes are not shown in the app, it simply looks like the math is wrong, which is very confusing to the customer.</SPAN></P><P><SPAN><BR />To resolve this, I believe I need to either output the taxes in the cart (to show the customer where the missing money is coming from) or output the difference between the subtotal and the discount that excludes the taxes. However, I cannot figure out how to do either of these things. I tried to code an equation {{original_total_formatted | minus: total_discount_formatted}} but this does not work. I am not sure if I have written the equation incorrectly or if this is simply inappropriate for the app, which I believe is coded in handlebar.js</SPAN></P><P> </P><P><SPAN>Any help would be greatly appreciated</SPAN></P><P> </P><P> </P>Mon, 24 Feb 2020 05:21:57 GMThttps://community.shopify.com/c/Ecommerce-Marketing/Need-to-output-taxes-or-a-figure-equal-to-subtotal-minus/m-p/665940#M32877dozewavelength2020-02-24T05:21:57Z