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)
-   -   Is it possible to have your own tabs (https://forum.x-cart.com/showthread.php?t=63596)

Toora Designs 09-28-2012 09:26 AM

Re: Is it possible to have your own tabs
 
Pyro instead of eq use == because you are editing php file not smarty file :)

Not tested but your code should be like this
PHP Code:

if ($product.categoryid == '1') {
    
$product_tabs[] = array(
        
'title'  => 'Sizing Chart',
        
'tpl'    => 'customer/main/sizing_chart_tab.tpl',
        
'anchor' => 'sizechart'
        
);



cflsystems 09-28-2012 09:33 AM

Re: Is it possible to have your own tabs
 
Still incorrect. The array is $product_info not $product and array elements cannot be called with dot something

Code:

if ($product_info['categoryid'] == '1') {
$product_tabs[] = array(
'title'  => 'Sizing Chart',
'tpl'    => 'customer/main/sizing_chart_tab.tpl',
'anchor' => 'sizechart'
);
}



Toora Designs 09-28-2012 09:40 AM

Re: Is it possible to have your own tabs
 
Thanks Steve :)
I was just telling Pyro to use == instead of eq in php code.

Pyro 09-28-2012 12:46 PM

Re: Is it possible to have your own tabs
 
Steve, Toora, and Addison,


Thank you all for the help. It is working fine now!


All times are GMT -8. The time now is 11:45 PM.

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