X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Order total less coupon value (https://forum.x-cart.com/showthread.php?t=59770)

BritSteve 06-14-2011 03:22 AM

Order total less coupon value
 
Hi,

We are using IdevAffiliate and have just noticed that the commission paid is calculated before any coupon value is deducted from the order total.

This is the affiliate code in /customer/main/order_message.tpl.

{literal}
<script language="JavaScript" type="text/javascript" src="http://www.xxx.com/idevaffiliate/sale.php?idev_saleamt={/literal}{section name=oi loop=$orders}{$orders[oi].order.subtotal}{/section}{literal}&idev_ordernum={/literal}{section name=oi loop=$orders}{$orders[oi].order.orderid}{/section}{literal}">
</script>
{/literal}

Is there a variable I can use in place of order.subtotal which will be the order value after coupon but before shipping?

Thanks,

Steve

BritSteve 06-17-2011 06:43 AM

Re: Order total less coupon value
 
If anyone has the same issue, just replace $orders[oi].order.subtotal with $orders[oi].order.discounted_subtotal

Steve


All times are GMT -8. The time now is 09:38 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.