Knowledgebase
How can I display the On Sale category link only when there are active sales?
Posted by - NA - on 04 May 2011 03:48 PM
If you have the options enabled to display the sales on the category/product pages (On Sale -> settings tab), they you can do the following:

Open modules/On_Sale/onsale_home.php

Add this code at the very bottom of the file before the ?>:

$smarty->assign('active_sales', is_array($sales) && count($sales) > 0 ? true : false);


You can then add && $active_sales the On Sale code in your skin1/customer/categories.tpl file:

For example:

Change:

{*** On Sale :: alteredcart.com ***}
{if $active_modules.On_Sale}


to:

{*** On Sale :: alteredcart.com ***}
{if $active_modules.On_Sale && $active_sales}

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