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)
-   -   speed bar sort order? (https://forum.x-cart.com/showthread.php?t=54082)

ARW VISIONS 06-07-2010 12:45 PM

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?

ARW VISIONS 06-07-2010 12:53 PM

Re: speed bar sort order?
 
you can see it here

http://rushdist.com/

the our brands is the speed bar.

PhilJ 06-07-2010 12:55 PM

Re: speed bar sort order?
 
Code:

{section name=sb loop=$speed_bar step=-1}

ARW VISIONS 06-07-2010 01:01 PM

Re: speed bar sort order?
 
Phil, menu goes blank :(

PhilJ 06-07-2010 01:07 PM

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

ARW VISIONS 06-07-2010 01:11 PM

Re: speed bar sort order?
 
it was originally a foreach statement

ARW VISIONS 06-07-2010 01:12 PM

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}

PhilJ 06-07-2010 01:21 PM

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}


ARW VISIONS 06-07-2010 06:46 PM

Re: speed bar sort order?
 
awesome, worked perfectly.


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

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