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)
-   -   Re-order bottom tabs. (https://forum.x-cart.com/showthread.php?t=61008)

denisRGM 09-26-2011 02:56 AM

Re-order bottom tabs.
 
Using V4.4.3, custom installation by Xcart which I believe uses 3 column layout, see http://oakfurniture1.co.uk

When in a direct product such as here http://oakfurniture1.co.uk/product.php?productid=17514&cat=0&featured=Y it has at the bottom 4 tabs with default opening of Send to friend. We would like to change the order of these tabs and have default opening to Category Products tab.

Anyone any idea how to do this please?

Many thanks.

Denis.

totaltec 09-26-2011 05:35 AM

Re: Re-order bottom tabs.
 
You are looking for /include/product_tabs.php.

After line 54:
$product_tabs = array();

The sections below this define the individual tabs, just change the order that they appear in the document. Move the code block that represent "Send to Friend" below the others. This is the send to friend block, line 111 on my system:
Code:

if ($config['Appearance']['send_to_friend_enabled'] == 'Y') {
    $product_tabs[] = array(
        'title'  => func_get_langvar_by_name('lbl_send_to_friend'),
        'tpl'    => 'customer/main/send_to_friend.tpl',
        'anchor' => 'send2friend'
    );
}


denisRGM 09-26-2011 06:18 AM

Re: Re-order bottom tabs.
 
Right on the button sir, my many thanks and most appreciated.

Best regards.

Denis.

shopchimney 07-10-2013 07:36 PM

Re: Re-order bottom tabs.
 
Yes, that worked well, thanks.
Is there a way to make customer reviews show up first if there is a review, and if there is no review, then have another tab like related products show up first?

WilpackPackaging 02-10-2014 11:29 AM

Re: Re-order bottom tabs.
 
Anyone know how to do this in 4.6.1?


All times are GMT -8. The time now is 02:37 PM.

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