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)
-   -   Coupon Code in Order Confirmation email (https://forum.x-cart.com/showthread.php?t=34305)

Lee 10-01-2007 11:55 PM

Coupon Code in Order Confirmation email
 
Morning all,

Is it possible to have the Coupon Code actually display somewhere in the order confirmation email?

We use coupon codes to give away reward points, so I have it set up as a coupon code for Free Shipping and our inbound assign the reward poionts to order they see tith a coupon saving of ё0.00.

As we build more and more coupons I would just like to see the actual code in the email so our inbound know which offer it applies to.

Any ideas?

cotc2001 10-15-2007 10:50 PM

Re: Coupon Code in Order Confirmation email
 
I don't know the answer but wanted to bump this as it is something similair to what we want to do

We need to insert the coupon code used for a order into our affiliate tracking code (we are with paid on results) which is on order_message.tpl so is there a tag we can use to do this or would it require custom coding?

Lee 10-16-2007 08:13 AM

Re: Coupon Code in Order Confirmation email
 
Using skin1/mail/html/order_data.tpl we added -

{if $order.coupon and $order.coupon_type eq "free_ship"}
<TR>
<TD align="right" height="20"><B>Coupon name:</B>&nbsp;</TD>
<TD align="right">{$order.coupon}&nbsp;</TD>
</TR>
{/if}

So if a customer uses one of coupon codes that gives them extra reward points, it is set up as Free Shipping in the admin, but on the order message that comes through iunder the subtotal it specifies the coupon code i.e.LT07116, which our inbound team pick up on and we act on accordingly.

Not perfect, but it works :)


All times are GMT -8. The time now is 02:12 PM.

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