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

How to add tabs to product page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 12-28-2010, 04:30 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Re: How to add tabs to product page?

Hi sorry about that, I was reloading products into the database, so that link above is dead.

Here's a new link and the link above will be fixed as well.

http://www.sunraysales.com/xcart/product.php?productid=11382&cat=174&page=1

EDIT: I have just modified the code a bit more, remove the first line if statement. So it is not bound to the config, meanining it will always appear.

Code:
{ $product_tabs[] = array( 'title' => func_get_langvar_by_name('lbl_details'), 'tpl' => 'customer/main/p-details.tpl', 'anchor' => 'details' ); }

This is all that you need to create a tab, once again the tab name is defined by the 2nd line with 'title', from my testing the name of the tab can't be too long otherwise it won't work (don't know why). I suggest a short name for the tab.

Cheers.
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:13 PM.

   

 
X-Cart forums © 2001-2020