| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding line in between each listed category? | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Adding line in between each listed category?
Is there an easy way to add lines between each category listed under the "Categories" menu box? I would like it so each category would have a line seperating them. thanks
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#2
|
|||||||||
|
|||||||||
Go to skin1/customer/categories.tpl and find this code:
Code:
and after the put <HR> You may not want it to place a <HR> after the last category, so one way to do this is put this instead of the <HR>: Code:
This site may help to. http://smarty.php.net Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#3
|
|||||||
|
|||||||
wow thanks Carrie that worked like a charm and is exactly what I was looking for. The only thing is that I put the code in place of the <hr> so that it would not add a line to the last category but it is still doing so.
Also, how do I change the distance now between the categories because they are a little furthur apart than I need, and one last question is how do I change the color of the line separating them? Thanks again...I really appreciate all your help.
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#4
|
|||||||||
|
|||||||||
Sorry about that. Change the "if" part to this:
Code:
To change the <HR> properties, you'll need to change it in skin1.css I can't think of anything off the top of my head that would shrink the spacing down. You can try removing the since you have the <HR> in there now. I doubt that's going to make a difference though. It's probalby the <HR> properties causing it. You could include an image of a line instead of the <HR>. That may give you more of the look you want. Just put what ever HTML you want inbetween the if statement to change the look between the categories. Glad I could help! Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#5
|
|||||||
|
|||||||
This worked great in case anyone else wants to try it...Thanks for all your time and help Carrie!
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#6
|
|||||||
|
|||||||
I also implimented this HR line and it works well, however I would like to do the same in my manufactures and help menu boxes
Can anyone tell me which tpls and where to place this code?? Thanx Kirsten
__________________
Kirsten X_Cart Gold Version 4.0.11 www.silverimports.com.au www.diamondimports.com.au |
|||||||
#7
|
|||||||||
|
|||||||||
skin1\modules\Manufacturers\menu_manufacturers.tpl should do it for the manufacturer's and skin1/help.tol should do it for the help area.
Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#8
|
|||||||
|
|||||||
Thanx carrie
But I already contacted the xcart ppl and they helped me implement the spacing changes I needed for these other menus and I went with just extra spacing rather than having the line Kirsten
__________________
Kirsten X_Cart Gold Version 4.0.11 www.silverimports.com.au www.diamondimports.com.au |
|||||||
#9
|
|||||||||
|
|||||||||
Nice tip, but how do I implement it in a DHTML menu like the one Cart-labs has. I need it so it only apply to the top categories not the submenus, so everything will stay inside the line.
I already try after the but only afect the submenus. Here is my code: Quote:
__________________
"The point is, to make so much money, that money isn't the point anymore." Pro Version 4.0.19 Gold Version 4.1.3 Linux |
|||||||||
#10
|
|||||||||
|
|||||||||
I would imagine at first glace that it would go after this:
Code:
But you may get a quicker answer asking cart-labs since they would be familiar with this code you posted. Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|