Knowledgebase: On Sale
How can I display the On Sale discounts with the Firetank Featured product manager?
Posted by - NA - on 01 December 2010 10:22 AM
Make the following edits:

include/func/func.product.php

Find this code near line 870:


return $product;
}


Before this add:


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



/product.php

Change this:


$product_info = func_select_product($productid, @$user_account['membershipid']);


to this:


$GLOBALS['loading_product_page_info'] = true;
$product_info = func_select_product($productid, @$user_account['membershipid']);
$GLOBALS['loading_product_page_info'] = false;



And add this to the featured products manager style template (this varies depending on the template chosen when installing the featured products module:


{* On Sale :: alteredcart.com *}{if $active_modules.On_Sale}{include file="modules/On_Sale/onsale_img_display.tpl" onsale=$products[product].onsale}{/if}{* END On Sale :: alteredcart.com *}



--------------------------------------------------------------------------------

Related Articles

•How do I add the On Sale discounts to the Related or Upselling products on my main product display page?
•The On Sale module discounts aren't applied when using Google Checkout or Gift certificates.
•How do I display the On Sale coupon data or sale information on the customers invoice?
•I'm receiving this error on the checkout page: "There was an error loading the shipping options, please try again. (You may need to refresh your browser.)"

--------------------------------------------------------------------------------

Still Have Questions? If you are unable to find a solution in the knowledgebase please open a support ticket for a personal response from alteredCart support.


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