| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
speed bar sort order? | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
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 |
|||||||||
|
#2
|
|||||||||
|
|||||||||
|
__________________
xcart 5.1.2 |
|||||||||
|
#3
|
|||||||
|
|||||||
|
Code:
__________________
xcartmods.co.uk |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
Phil, menu goes blank
__________________
xcart 5.1.2 |
|||||||||
|
#5
|
|||||||
|
|||||||
|
Strange, all you need to do is add step=-1
http://www.smarty.net/manual/en/language.function.section.php
__________________
xcartmods.co.uk |
|||||||
|
#6
|
|||||||||
|
|||||||||
|
it was originally a foreach statement
__________________
xcart 5.1.2 |
|||||||||
|
#7
|
|||||||||
|
|||||||||
|
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 |
|||||||||
|
#8
|
|||||||
|
|||||||
|
Code:
__________________
xcartmods.co.uk |
|||||||
|
|||||||
|
#9
|
|||||||||
|
|||||||||
|
awesome, worked perfectly.
__________________
xcart 5.1.2 |
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||