![]() |
Help adding another subtotal calculation
On the cart/order pages the subtotal is displayed by:
{include file="currency.tpl" value=$cart.display_subtotal} {include file="currency.tpl" value=$order.subtotal} How do I add another calculation for SUBTOTAL (call it) SUBTOTALGC? ex. subtotalgc, would take the subtotal and also subtract any ⌠discount/coupon■ that was submitted. IF customer has: subtotal = $20.00 disount/coupon = -$2.00 THEN subtotalgc =$18.00 ------------ so I would have an additional field created: {include file="currency.tpl" value=$cart.display_subtotalgc} {include file="currency.tpl" value=$order.subtotalgc} ------------ |
Re: Help adding another subtotal calculation
Something like this
Code:
{if $cart.discount_coupon gt 0} |
All times are GMT -8. The time now is 08:40 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.