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)
-   -   Disable Bonuses Tab (https://forum.x-cart.com/showthread.php?t=63787)

mattcallis 05-29-2012 03:15 PM

Disable Bonuses Tab
 
Is there a way to disable the, "Bonuses" tab? This would be the tab on the page when the customer is logged in and sees, "Account Details," "Address Book," "Returns," etc.

cherie 05-30-2012 01:05 PM

Re: Disable Bonuses Tab
 
I believe that is only present when Special Offers is enabled. If you don't use it then turning it off should hide the tab.

totaltec 06-01-2012 05:34 AM

Re: Disable Bonuses Tab
 
If you just need to remove the tab, look in.

include/product_tabs.php

Comment out this code around line 64:
PHP Code:

if (!empty($active_modules['Special_Offers']) && !empty($product_offers)) {
    
$product_tabs[] = array(
        
'title'  => func_get_langvar_by_name('lbl_special_offers'),
        
'tpl'    => 'modules/Special_Offers/customer/product_offers_short_list.tpl',
        
'anchor' => 'soffers'
    
);



smarta 07-23-2013 05:31 PM

Re: Disable Bonuses Tab
 
hi

i tried that

/* if ($active_modules['Special_Offers'] && !empty($offers)) {
$product_tabs[] = array(
'title' => func_get_langvar_by_name('lbl_special_offers'),
'tpl' => 'modules/Special_Offers/customer/product_offers_short_list.tpl',
'anchor' => 'soffers'
);
} */

but the Bonus Tab still appears - the shop owner uses Special Offers quite a lot so disbaling the module won't solve my problem

this cart is using version 4.4.2

any suggestions?


All times are GMT -8. The time now is 10:57 AM.

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