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)
-   -   Remove Bonus Points Tab (https://forum.x-cart.com/showthread.php?t=55975)

SoapLady 10-11-2010 11:53 AM

Remove Bonus Points Tab
 
This is in a 4.4.1 cart:

I've enabled Special Offers, but we are NOT using Bonus Points. I don't want the Bonuses tab to show up in the "My Account" section.

The tabs are generated in top_links.tpl, but the array for the tab loop comes from somewhere else ... and I can't find where it's generated.

Does anyone know where to find it so i can remove the Bonus tabs from the tab array?

Marie

SoapLady 11-08-2010 01:51 PM

Re: Remove Bonus Points Tab
 
I got an answer back from X-Cart on how to remove the Bonus Points tab, but still keep Special Offers available (for other types of offers). Here's what they said:

If you'd like the Bonuses tab to be not displayed,
you can modify the 'skin/common_files/customer/main/top_links.tpl' template as follows:

find the following fragment:

Code: HTML/Smarty

{foreach from=$tabs item=tab key=ind}
{inc value=$ind assign="ti"}
<li class="ui-corner-top ui-state-default{if $tab.selected} ui-tabs-selected ui-state-active{/if}">
<a href="{if $tab.url}{$tab.url|amp}{else}#{$prefix}{$ti}{/if}">{$tab.title|escape}</a>
</li>
{/foreach}

and replace it with this:

Code: HTML/Smarty

{foreach from=$tabs item=tab key=ind}
{inc value=$ind assign="ti"}
{if $tab.url ne 'bonuses.php'}
<li class="ui-corner-top ui-state-default{if $tab.selected} ui-tabs-selected ui-state-active{/if}">
<a href="{if $tab.url}{$tab.url|amp}{else}#{$prefix}{$ti}{/if}">{$tab.title|escape}</a>
</li>
{/if}
{/foreach}


Marie


All times are GMT -8. The time now is 01:43 AM.

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