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 $ and $order.coupon_type eq "free_ship"}
<td align="right" height="20"><b>{$lng.lbl_coupon_saving} ({$}):</b> </td>
<td align="right">{include file="currency.tpl" value=$order.coupon_discount} </td>

Immediately after insert:

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

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 :: //
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):



Comments (0)
Post a new comment
Full Name: