Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Buttons for Subcategories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-20-2010, 07:55 PM
 
Fersick Fersick is offline
 

Advanced Member
  
Join Date: Dec 2009
Posts: 62
 

Default 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
__________________
X-cart ver 4.4.4 Gold

"Pollution, all around. Sometimes up and sometimes down but always around. Pollution, are you coming to my town? Or am I coming to yours? We're on different buses pollution
but we're both using petrol. Bombs." Rick the people's poet.
Reply With Quote
  #2  
Old 04-21-2010, 05:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-21-2010, 05:15 PM
 
Fersick Fersick is offline
 

Advanced Member
  
Join Date: Dec 2009
Posts: 62
 

Default Re: Buttons for Subcategories

Thanks will check it out. If i have any problems i will get back.
__________________
X-cart ver 4.4.4 Gold

"Pollution, all around. Sometimes up and sometimes down but always around. Pollution, are you coming to my town? Or am I coming to yours? We're on different buses pollution
but we're both using petrol. Bombs." Rick the people's poet.
Reply With Quote
  #4  
Old 04-21-2010, 05:29 PM
 
Fersick Fersick is offline
 

Advanced Member
  
Join Date: Dec 2009
Posts: 62
 

Default 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?
__________________
X-cart ver 4.4.4 Gold

"Pollution, all around. Sometimes up and sometimes down but always around. Pollution, are you coming to my town? Or am I coming to yours? We're on different buses pollution
but we're both using petrol. Bombs." Rick the people's poet.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:00 PM.

   

 
X-Cart forums © 2001-2020