| Author |
Message |
corpse

Joined: Apr 06, 2008
Posts: 33
|
Posted:
Sun Apr 27, 2008 11:37 am |
|
okay, I did a search and didn't see this anywhere, What files do I need to edit to fix the category view?
What I mean in detail is as follows.
Image 1
Shows as if you clicked the "Shop Home" in the top navigation. What i want to do here is move those images from being on top to the left of the text.
**Please don't just say edit the templet**
Thats not helping anything.
Image 2
This image shows as if you click the "Categories" button in the top navigation. Needless to say, it brings you to the same page but with out the images. I am still trying to figure out why you would have made it do this, but oh well. If I could I would have the "Shop Home button go to my first page which I made as an introduction page before they actually go to the main shop.
But how would I go about fixing this so it includes the images, (on the left)?
Just wondering, would it be easier if I just edit the navigation to put the "Categories" button to point where the "Shops Home" button is pointed and point the "Shops Home" button to my main start page that I created as an introduction. Then edit the Shops Home section, (image 1 from above), to put the images to show on the left?
Also another note, Besides just moving those images to the left, I would like to add in a few line breaks to space them out. If you point me to the files that need to be edited, I am about 99% sure i can edited them to what I need, but references to which files and possibly sections like what lines will save time of searching. |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Mon Apr 28, 2008 8:48 pm |
|
Basically, you have to edit the template...
Open modules/Digital_Shop/templates/default/shop/main.tpl
find...
| Code: |
<table align="center" width="80%" cellpadding="0" cellspacing="0">
<tr>
<td align="center" width="50%">
{foreach from=$cat_array item=cat name=catlist}
{if $smarty.foreach.catlist.iteration is even}
</td>
<td align="center" width="50%">
{elseif $smarty.foreach.catlist.iteration is odd && $smarty.foreach.catlist.iteration != 1}
</td>
</tr>
<tr>
<td align="center" width="50%">
{/if}
<a href="{$base_link}cat={$cat.id}" title="">{if $cat.image != ''}<img src="{$cat.image}" alt="" /><br />{/if}{$cat.title}</a> ({$cat.item_count})
{if $cat.details != ''}<br /> {$cat.details} {/if}<br />
{/foreach}
{if $smarty.foreach.catlist.iteration is odd}
</td><td>
{/if}
</td>
</tr>
</table> |
If you want the images to show on the left, just remove the br tag that comes after the image...
| Code: |
<img src="{$cat.image}" alt="" /><br /> |
And the "Categories" link doesn't have images because it is intended to show the categories as a tree like structure. In your case, it would probably be easy enough to change the link to point to the shop home. You'll find those links in modules/Digital_Shop/templates/default/header.tpl |
| |
|
|
 |
corpse

Joined: Apr 06, 2008
Posts: 33
|
Posted:
Mon Apr 28, 2008 9:32 pm |
|
|
|
 |
|
|