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

How to change order of Tabs???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-03-2010, 02:32 AM
 
NickC NickC is offline
 

Senior Member
  
Join Date: May 2007
Posts: 134
 

Default How to change order of Tabs???

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
Attached Thumbnails
Click image for larger version

Name:	tab-example.jpg
Views:	116
Size:	67.6 KB
ID:	2211  
__________________
4.1.9
X-Magnifier
X-FAQ's Manager
Skin-'Fashion Mosaic'
Links Manager
Meta Tag Pro
A-O-M
RSS Feed
SnS Live Help
Marketing Manager Pro
Banner Manager
Reply With Quote
  #2  
Old 12-03-2010, 02:54 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 12-03-2010, 03:30 AM
 
NickC NickC is offline
 

Senior Member
  
Join Date: May 2007
Posts: 134
 

Default 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>
__________________
4.1.9
X-Magnifier
X-FAQ's Manager
Skin-'Fashion Mosaic'
Links Manager
Meta Tag Pro
A-O-M
RSS Feed
SnS Live Help
Marketing Manager Pro
Banner Manager
Reply With Quote
  #4  
Old 12-03-2010, 03:36 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #5  
Old 12-03-2010, 03:45 AM
 
NickC NickC is offline
 

Senior Member
  
Join Date: May 2007
Posts: 134
 

Default 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
__________________
4.1.9
X-Magnifier
X-FAQ's Manager
Skin-'Fashion Mosaic'
Links Manager
Meta Tag Pro
A-O-M
RSS Feed
SnS Live Help
Marketing Manager Pro
Banner Manager
Reply With Quote
  #6  
Old 12-03-2010, 03:55 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
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 01:15 AM.

   

 
X-Cart forums © 2001-2020