| Author |
Message |
STALKER

Joined: Mar 14, 2006
Posts: 31
Location: Ohio
|
Posted:
Sat Jun 30, 2007 4:47 pm |
|
Just looking and i don't see the category showing anywhere?
I would like it to show like i've got version 1.0
http://www.themefreaks.com
So that they have an image to click on |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Wed Jul 04, 2007 10:31 am |
|
| STALKER wrote: |
Just looking and i don't see the category showing anywhere?
I would like it to show like i've got version 1.0
http://www.themefreaks.com
So that they have an image to click on |
Open modules/Digital_Shop/templates/XXX/shop/main.tpl
Find
| Code: |
{foreach from=$cat_array item=cat}
<a href="{$base_link}cat={$cat.id}" title="">{$cat.title}</a> |
Change to
| Code: |
{foreach from=$cat_array item=cat}
<img src="{$cat.image}" alt="" /><br />
<a href="{$base_link}cat={$cat.id}" title="">{$cat.title}</a> |
|
| |
|
|
 |
STALKER

Joined: Mar 14, 2006
Posts: 31
Location: Ohio
|
Posted:
Sun Aug 12, 2007 10:51 pm |
|
Ok i have the cat images working now.
Next thing is how do i get two columns instead of one single column |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Sun Aug 12, 2007 11:27 pm |
|
For dual column categories you will need to find and change this code in the same file as my earlier post:
| Code: |
{if $cat_array != ''}
{include file='default/blocks/block1-open.tpl'}
{foreach from=$cat_array item=cat}
<img><br>
<a>{$cat.title}</a> ({$cat.item_count})
{if $cat.details != ''} - {$cat.details} {/if}<br>
{/foreach}
{include file='default/blocks/block1-close.tpl'} |
to this:
| Code: |
{if $cat_array != ''}
{include file='default/blocks/block1-open.tpl'}
<table>
<tr>
<td>
{foreach name=cl from=$cat_array item=cat}
{if $smarty.foreach.cl.iteration is even}
</td>
<td>
{elseif $smarty.foreach.cl.iteration is odd && $smarty.foreach.cl.iteration != 1}
</td>
</tr>
<tr>
<td>
{/if}
<img><br>
<a>{$cat.title}</a> ({$cat.item_count})
{if $cat.details != ''} - {$cat.details} {/if}<br>
{/foreach}
</td>
</tr>
</table>
{include file='default/blocks/block1-close.tpl'} |
|
| |
|
|
 |
STALKER

Joined: Mar 14, 2006
Posts: 31
Location: Ohio
|
Posted:
Mon Aug 13, 2007 11:10 am |
|
Works great thanks alot for helping me out |
| |
|
|
 |
|
|