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)
-   -   Buttons for Subcategories (https://forum.x-cart.com/showthread.php?t=53376)

Fersick 04-20-2010 07:55 PM

Buttons for Subcategories
 
I have added all my products to my site and have quite a few subcategories. These links are inside a main Cat. And all they are is a underlined hyperlink. How do i go about changing these to a graphic image. I can see my customer missing these links to products unless i glam them up a bit.

Thanks

balinor 04-21-2010 05:25 AM

Re: Buttons for Subcategories
 
You'd need to edit the template to replace the text link with a button. Use Webmaster Mode to tell you exactly which template it is - probably customer/main/subcategories.tpl

Moving to Template Editing

Fersick 04-21-2010 05:15 PM

Re: Buttons for Subcategories
 
Thanks will check it out. If i have any problems i will get back.

Fersick 04-21-2010 05:29 PM

Re: Buttons for Subcategories
 
{if $subcategories}
{include file="customer/main/subcategories_t.tpl"}
{/if}
{else}
<img class="subcategory-image" src="{$current_category.icon_url|amp}" alt="{$current_category.category|escape}"{if $current_category.image_x} width="{$current_category.image_x}"{/if}{if $current_category.image_y} height="{$current_category.image_y}"{/if} />
{inc assign="standoff" value=$current_category.image_x|default:0 inc=15}

found this body of code in the customer/main/categories.tpl file. Would i need to remove the
{include file="customer/main/subcategories_t.tpl"}
{/if}
{else}

section to get started?

I'm green with SMARTY but am doing a IT degree atm. And learning JAVA currently.
Some feed back on the similarities would be great. Is smarty OO?


All times are GMT -8. The time now is 01:36 AM.

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