X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Use an image instead of text for category listing (https://forum.x-cart.com/showthread.php?t=16966)

Rains 09-29-2005 01:51 PM

Use an image instead of text for category listing
 
IБ─≥m new to the X-Cart template thing, and IБ─≥ve also tried searching the form for an answer without luck.

When a customer visits the store, IБ─≥d like the category listing to use the image IБ─≥ve uploaded when I created the category. Quite frankly, IБ─≥m stumped on doing this, so if anybody knows how or can point me in the right direction, IБ─≥d greatly appreciate it.

balinor 09-29-2005 02:19 PM

Try this in categories.tpl, right under the first section tag:

[img]{$xcart_web_dir}/icon.php?categoryid={$categories[cat_num].categoryid}[/img]

Rains 10-06-2005 03:03 PM

Thanks! That seemed to do the trick with the categories. Can I do something similiar for the Manufacturers as well? I tried the following in
/modules/Manufacturers/menu_manufacturers.tpl without any luck:

[img]{$xcart_web_dir}/icon.php?manufacturerid={$manufacturers_menu[mid].manufacturerid}[/img]

balinor 10-07-2005 04:18 AM

Check the custom mods forum for that, I believe there is a mod in there for it.


All times are GMT -8. The time now is 06:05 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.