| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How can I display the category icon on every page? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Please could someone help?
I am running Xcart version 4.0.14 How can I make the category icon display on every page? By default it on seems to display on category pages that include subcategories. Thanx ![]()
__________________
Version 4.0.14 |
|||||||
#2
|
|||||||
|
|||||||
![]() You will need to edit subcategories.tpl....there is an {if} statement in there that tells X-Cart to only display the icon on pages with sub-categories...
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks for your response.
Do you know which (if) statement or what I need to change it to? I've never edited the templates before and am a bit confused by them.
__________________
Version 4.0.14 |
|||||||
#4
|
|||||||
|
|||||||
![]() Ok, open up skin1/customer/main/subcategories.tpl and replace this:
Code:
with this: Code:
Be sure and make a backup of your current template first. Haven't tested this, but it should work.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() That done the trick
Thanks
__________________
Version 4.0.14 |
|||||||
#6
|
|||||||
|
|||||||
![]() Sorry, one more question.
The category photo now displays next tro the first item which sometimes causes the description text to run off the end of the page. Is there any way to make the category photo appear above all the items? Thanks
__________________
Version 4.0.14 |
|||||||
#7
|
|||||||
|
|||||||
![]() Either put the category icon and description in a different table cell, or add a few
or tags in there.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() I don't really understand the code very well.
Please could you tell me exactly what I need to change it to? I think this is the piece of code I need to change: [img]{if $current_category.icon_url}{$current_category.icon _url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img] {if $subcategories}
__________________
Version 4.0.14 |
|||||||
#9
|
|||||||
|
|||||||
![]() Yes, replace that bit of code with this:
Code:
Add or remove tags as required to get the correct spacing.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#10
|
|||||||
|
|||||||
![]() I had this done by X-cart, i wanted an icon for each catagory whether there was subs or not in there, if you know html or have and editor like dreamweaver then use this to create your product layout, instead of typing text in tehe description boxes i use html gives much more control over the layout with out needing to be a php guru......
this was to stop your text running of the screen.
__________________
SURECOM XCART V4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|