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 change order of Tabs??? (https://forum.x-cart.com/showthread.php?t=56866)

NickC 12-03-2010 02:32 AM

How to change order of Tabs???
 
1 Attachment(s)
Can anyone point me in the right direction and to where to look.? I want to change the order in which the tabs appear in the products tab menu pictured below.. i.e. put 'Detailed Image" as the default tab to appear ontop.

Many thanks
Nick

cflsystems 12-03-2010 02:54 AM

Re: How to change order of Tabs???
 
Is this for 4.4.1? The only way to do this is to modify the tabs template and move them around the way you want them to appear. Use webmaster mode to find out which template exactly

NickC 12-03-2010 03:30 AM

Re: How to change order of Tabs???
 
Hi

Thanks, it is 4.4 and i have located the tab.tpl (as below) but which part of the code determines the order? Or may be another way to do it is to alter the default tab to be shown as open on entering page? What we want to achieve is the detailed image to be showing first.

{*
$Id: ui_tabs.tpl,v 1.5 2010/07/29 14:07:41 igoryan Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<script type="text/javascript">
//<![CDATA[
$(function() {ldelim}
var tOpts = {ldelim}
idPrefix: '{$prefix|default:"ui-tabs-"}', cookie: {ldelim} expires: 1 {rdelim}{if $selected}, selected: '{$selected}'{/if}
{rdelim};
$('#{$prefix}container').tabs(tOpts);
{rdelim});
//]]>
</script>
<div id="{$prefix}container">
<ul>
{foreach from=$tabs item=tab key=ind}
{inc value=$ind assign="ti"}
<li><a href="{if $tab.url}{$tab.url|amp}{else}#{$prefix}{$tab.ancho r|default:$ti}{/if}">{$tab.title|escape}</a></li>
{/foreach}
</ul>
{foreach from=$tabs item=tab key=ind}
{if $tab.tpl}
{inc value=$ind assign="ti"}
<div id="{$prefix}{$tab.anchor|default:$ti}">
{include file=$tab.tpl nodialog=true}
</div>
{/if}
{/foreach}
</div>

ADDISON 12-03-2010 03:36 AM

Re: How to change order of Tabs???
 
It should be a php file. I don't have XC installed in my location, but if nobody will ask you I will send you the right name by tonight.

NickC 12-03-2010 03:45 AM

Re: How to change order of Tabs???
 
Quote:

Originally Posted by am2003
It should be a php file. I don't have XC installed in my location, but if nobody will ask you I will send you the right name by tonight.


Yup, thats the job. Found order in "includes/products_tabs.php"

Many thanks:-)

ADDISON 12-03-2010 03:55 AM

Re: How to change order of Tabs???
 
You can create in that php file other tabs and based on smarty if statement you can present different content. for example some extra fields like awards, technology, youtube videos.

I know it is hard coded by manually you can fulfill your dreams. Hope QT will take in consideration one of my requests to create easier tabs in the next versions. Just hope.


All times are GMT -8. The time now is 07:52 PM.

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