| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Display the Bestsellers List as a list format | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Display the Bestsellers List as a list format
Hi,
I would like to display the Bestsellers List as a normal ordered list <ol><li></li></ol>, instead of the way it displays now with the text wrapping to the edge of the page, under the numbers. Is this possible? This is the way it displays by default: 1. This is the first bestseller 2. This is another bestseller that goes on to the next line. 3. Yet another besteseller that is on the next line This is the way I like it to display:
Thanks, Jo
__________________
pws X-Cart version 4.1.8 |
|||||||
#2
|
|||||||
|
|||||||
Re: Display the Bestsellers List as a list format
Jo,
Before I suggest a solution, please do some housekeeping and update your forum sig with your correct version of xcart -- your fourm sig states, "4.1.18" -- not a valid version of xcart -- is it 4.1.8 or 4.0.18? I will suggest a solution for 4.1.8. OK -- in /skin1/modules/Bestsellers/menu_bestsellers.tpl find this code: Code:
Notice the {section name=num loop=$bestsellers} -- and the {/section} ??? That's your loop for the items. Just thinking out loud: Could you start the <ol> before the loop, and close it after? I think you could. Maybe this: Code:
Notice, I took out the "numbering" function - if you're using a <ul><li> then this is not really needed, is it?: <font class="VertMenuItems"><b>{math equation="value+1" value=$smarty.section.num.index}.</b></font> I think this will do what you want. The only drawback is loss of control on the formatting. By doing it the x-cart way, you can use a CSS class to be very specific on linebreaks, etc. Using <ol> may be the better solution?? Please report back! I'm just thinking out loud, so I may be way off here... Hope this helps, Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||
|
|||||||
Re: Display the Bestsellers List as a list format
Hi Jeremy,
You were spot on. Well Done! Worked perfectly. Just had to adjust the "ol" styling and everything is great. Your help and advise is much appreciated. Thanks! Jo
__________________
pws X-Cart version 4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|