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

Is it possible to have your own tabs

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 09-28-2012, 09:26 AM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default 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'
        
);

__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote

The following user thanks Toora Designs for this useful post:
Pyro (09-28-2012)
  #22  
Old 09-28-2012, 09:33 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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' ); }
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
carpeperdiem (10-23-2012)
  #23  
Old 09-28-2012, 09:40 AM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: Is it possible to have your own tabs

Thanks Steve
I was just telling Pyro to use == instead of eq in php code.
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote

The following user thanks Toora Designs for this useful post:
Pyro (09-28-2012)
  #24  
Old 09-28-2012, 12:46 PM
 
Pyro Pyro is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 506
 

Default Re: Is it possible to have your own tabs

Steve, Toora, and Addison,


Thank you all for the help. It is working fine now!
__________________
Best Wishes,
James

4.5.2 Gold (work in progress)
Reply With Quote
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 10:26 PM.

   

 
X-Cart forums © 2001-2020