Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Order total less coupon value

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-14-2011, 03:22 AM
 
BritSteve BritSteve is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 339
 

Default 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
__________________
Version 4.1.8 & 4.1.9
ezcheckout4.1.x
cdseolinks2
product_metatags41x
shipping_per_product41x

http://www.earthsmagic.com
Reply With Quote
  #2  
Old 06-17-2011, 06:43 AM
 
BritSteve BritSteve is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 339
 

Default 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
__________________
Version 4.1.8 & 4.1.9
ezcheckout4.1.x
cdseolinks2
product_metatags41x
shipping_per_product41x

http://www.earthsmagic.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:50 PM.

   

 
X-Cart forums © 2001-2020