| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Help adding another subtotal calculation | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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} ------------
__________________
x-cart 4.0.16v linux server |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Help adding another subtotal calculation
Something like this
Code:
__________________
Regards, Victor Dubiniuk X-Cart Skins Store - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
|
|||
X-Cart forums © 2001-2020
|