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

speed bar sort order?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-07-2010, 12:45 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default speed bar sort order?

I moved the speed bar to the left hand menu, so it could be a vertical list The speed bar sort order is now backwards.

the last item is displayed first and the first item displayed last.

How do i correct this?
__________________
xcart 5.1.2
Reply With Quote
  #2  
Old 06-07-2010, 12:53 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: speed bar sort order?

you can see it here

http://rushdist.com/

the our brands is the speed bar.
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 06-07-2010, 12:55 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: speed bar sort order?

Code:
{section name=sb loop=$speed_bar step=-1}
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 06-07-2010, 01:01 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: speed bar sort order?

Phil, menu goes blank
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 06-07-2010, 01:07 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: speed bar sort order?

Strange, all you need to do is add step=-1
http://www.smarty.net/manual/en/language.function.section.php
__________________
xcartmods.co.uk
Reply With Quote
  #6  
Old 06-07-2010, 01:11 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: speed bar sort order?

it was originally a foreach statement
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 06-07-2010, 01:12 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: speed bar sort order?

original code

{foreach from=$speed_bar item=sb}
<li><a href="{$sb.link|amp}" target="_blank">{$sb.title}</a></li>
{/foreach}
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 06-07-2010, 01:21 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: speed bar sort order?

Code:
{section name=sb loop=$speed_bar step=-1} <li><a href="{$speed_bar[sb].link}" target="_blank">{$speed_bar[sb].title}</a></li> {/section}
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
Ashley (06-07-2010)
  #9  
Old 06-07-2010, 06:46 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: speed bar sort order?

awesome, worked perfectly.
__________________
xcart 5.1.2
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 02:51 AM.

   

 
X-Cart forums © 2001-2020