| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding category banners | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Adding category banners
Hi,
I want to add a banner to the top of every category but aren't sure where it goes (i was hoping to just do it by CSS). Anyone got any pointers? A banner under the "CPU's" header would be great as shown here: http://www.freshtechsolutions.co.uk/home.php?cat=70 Thanks for your time and any help is appriciated. |
|||||||
#2
|
|||||||
|
|||||||
Re: Adding category banners
Your signature says 4.4.2, yet it's not out yet
Can't you just add banner image as category icons in category admin? Or, for v4.4.1 (assuming light and lucid skin) skin/common_files/customer/subcategories.tpl Insert... Code:
Or if you are prepared to make banners for every category... Code:
__________________
xcartmods.co.uk |
|||||||
#3
|
|||||||
|
|||||||
Re: Adding category banners
Its not showing for some reason.
I have this in the subcategories.tpl: <h3{if $class} class="{$class}"{/if}>{$title}</h3> {if $cat eq "443" OR "444"}<img src="{$ImagesDir}/amd.jpg" />{/if} |
|||||||
#4
|
|||||||
|
|||||||
Re: Adding category banners
Use...
Code:
__________________
xcartmods.co.uk |
|||||||
#5
|
|||||||
|
|||||||
Re: Adding category banners
still no luck :/
|
|||||||
#6
|
|||||||
|
|||||||
Re: Adding category banners
Try this:
Code:
Generally.. use lower-case boolean in smarty tpl files: and, or, ne, eq, etc. and use symbolic boolean in php files and javascript entries within tpl files: &&, ||, ==, !, etc But mix-and-match works.. generally.
__________________
Ralph X-Cart v4.4.2 Gold (still buggy, some are new ones) PHP 5.2.13 |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Adding category banners
Quote:
Correct me if I am mistaken? Why go through all that trouble? Just go in admin - Categories - "Choose your category" and then click on Modify category and then in your Description area put a banner there Here is an example on my site http://www.customoid.co.uk/miscellaneous/ |
|||||||||
#8
|
|||||||
|
|||||||
Re: Adding category banners
If you were to do this, could you display a scaled down version of the same image on every product page per manufacturer?
If so where could you apply the code to display the banner above the product description? Where would you upload the files? What could would you use for that? |
|||||||
|
|||
X-Cart forums © 2001-2020
|