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)
-   -   How to add tabs to product page? (https://forum.x-cart.com/showthread.php?t=57226)

Sunray Sales 12-28-2010 04:30 AM

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.


All times are GMT -8. The time now is 05:40 AM.

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