Knowledgebase
How do I display the On Sale coupon data or sale information on the customers invoice?
Posted by Nick Poindexter on 04 March 2010 05:07 PM
If you are using a version of On Sale prior to 1.2 you will need to update to the latest version.



Make the following changes:

1. Open skin1/mail/html/order_data.tpl

Find this code near line 122:

{if $order.coupon and $order.coupon_type eq "free_ship"}
<tr>
<td align="right" height="20"><b>{$lng.lbl_coupon_saving} ({$order.coupon}):</b> </td>
<td align="right">{include file="currency.tpl" value=$order.coupon_discount} </td>
</tr>
{/if}


Immediately after insert:

{*** On Sale :: alteredcart.com ***}
{if $order.onsale_data && $active_modules.On_Sale}
{include file="modules/On_Sale/onsale_order_data.tpl" onsale_data=$order.onsale_data}
{/if}
{*** On Sale :: alteredcart.com ***}


2. Open include/func/func.order.php

Find this code near line 384:

if (!empty($active_modules['Google_Checkout']))
include $xcart_dir."/modules/Google_Checkout/get_order_data.php";


Immediately after insert:

// On Sale :: www.alteredcart.com //
if ($active_modules['On_Sale']){
require $xcart_dir."/modules/On_Sale/onsale_orders.php";
$order['onsale_data'] = $onsale_data;
}
// End On Sale //



3. Upload the attached file to the skin1/modules/On_Sale directory (if this file already exists you can skip this step):

skin1/modules/On_Sale/onsale_order_data.tpl

onsale_order_data.tpl

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: