Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove Bonus Points Tab

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-11-2010, 11:53 AM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default 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
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
Reply With Quote
  #2  
Old 11-08-2010, 01:51 PM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default 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
__________________
SoapLady
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
Reply With Quote

The following 2 users thank SoapLady for this useful post:
Claraweb (02-19-2013), Isleman (02-24-2011)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:56 AM.

   

 
X-Cart forums © 2001-2020