Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
STALKER




Joined: Mar 14, 2006
Posts: 31
Location: Ohio

PostPosted: Sat Jun 30, 2007 4:47 pm
Reply with quote

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
 
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Wed Jul 04, 2007 10:31 am
Reply with quote

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>
 
View user's profile Send private message Visit poster's website
STALKER




Joined: Mar 14, 2006
Posts: 31
Location: Ohio

PostPosted: Sun Aug 12, 2007 10:51 pm
Reply with quote

Ok i have the cat images working now.

Next thing is how do i get two columns instead of one single column
 
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Sun Aug 12, 2007 11:27 pm
Reply with quote

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'}
 
View user's profile Send private message Visit poster's website
STALKER




Joined: Mar 14, 2006
Posts: 31
Location: Ohio

PostPosted: Mon Aug 13, 2007 11:10 am
Reply with quote

Works great thanks alot for helping me out
 
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours
Forums ©