Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 12:33:27 AM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12248 Posts in 1446 Topics by 5607 Members
Latest Member: holl511i
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Shopping cart software
| | |-+  Prestashop
| | | |-+  Links in category
« previous next »
Pages: 1 [2] Print
Author Topic: Links in category  (Read 1527 times)
JhnStcks
Global Moderator
Part of the Furniture
*****

Karma: 12
Offline Offline

Gender: Male
Posts: 406


WWW
« Reply #15 on: March 12, 2010, 11:45:06 AM »

Ok Fivewood try this code.

Repalce the whole of category.tpl with the following code

Code:
{include file=$tpl_dir./breadcrumb.tpl}
{include file=$tpl_dir./errors.tpl}

{if $category->id AND $category->active}
<h2 class="category_title">
{$category->name|escape:'htmlall':'UTF-8'}
<span>{$nb_products|intval}&nbsp;{if $nb_products>1}{l s='products'}{else}{l s='product'}{/if}</span>
</h2>

{if $scenes}
<!-- Scenes -->
{include file=$tpl_dir./scenes.tpl scenes=$scenes}
{else}
<!-- Category image -->
{if $category->id_image}
<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" />
{/if}
{/if}

{if $category->description}
<div class="cat_desc">{$category->description}</div>
{/if}
  {include file=$tpl_dir./product-sort.tpl}

{if isset($subcategories)}
<!-- Subcategories -->
<div id="subcategories">
<h3>{l s=''}</h3>
<ul class="inline_list">
{foreach from=$subcategories item=subcategory}
<li>
<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
<img src="{$img_cat_dir}{if $subcategory.id_image}{$subcategory.id_image}{else}default{/if}-medium.jpg" alt="" />
</a>
<br />
<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>
</li>
{/foreach}
</ul>
<br class="clear"/>
</div>
{/if}

  {if $products}
{include file=$tpl_dir./product-list.tpl products=$products}
{include file=$tpl_dir./pagination.tpl}
{elseif !isset($subcategories)}
<p class="warning">{l s='There is no product in this category.'}</p>
{/if}
{else}
<p class="warning">{l s='This category is currently unavailable.'}</p>
{/if}
Logged

Snowboarding Goggles For all things Snowboarding and Skiing.  Goggles, Helmets, Gloves and Clothing.
The Fashion Agent We are your fashion agent.  Designer Clothes, sunglasses, headphones from top designer brands.
fivewood
Liking it Here
***

Karma: 6
Offline Offline

Gender: Male
Posts: 102


WWW
« Reply #16 on: March 12, 2010, 11:56:08 AM »

That takes me back to my original problem where I get 2 subcategory descriptions and 2 sort dropdowns
My amended category.tpl file got rid of these but caused the change around of the title and description


* subcategory.jpg (75.53 KB, 902x534 - viewed 63 times.)
Logged

http://www.footballbits.co.uk - huge selection of officially licenced football souvenirs, merchandise, memorabilia and gifts. Perfect for fans of all ages and at affordable prices.
JhnStcks
Global Moderator
Part of the Furniture
*****

Karma: 12
Offline Offline

Gender: Male
Posts: 406


WWW
« Reply #17 on: March 12, 2010, 12:00:08 PM »

Well that doesnt make sense as I actually had this file installed on one of my templates and it displaed fine.  There is obviously something happening in a different file maybe the product-list.tpl
Logged

Snowboarding Goggles For all things Snowboarding and Skiing.  Goggles, Helmets, Gloves and Clothing.
The Fashion Agent We are your fashion agent.  Designer Clothes, sunglasses, headphones from top designer brands.
fivewood
Liking it Here
***

Karma: 6
Offline Offline

Gender: Male
Posts: 102


WWW
« Reply #18 on: March 12, 2010, 12:02:49 PM »

Thanks for looking anyway
Think I'll reload the original category files and have a look at the product files as well and start again, try and work out where I've gone wrong
Logged

http://www.footballbits.co.uk - huge selection of officially licenced football souvenirs, merchandise, memorabilia and gifts. Perfect for fans of all ages and at affordable prices.
JhnStcks
Global Moderator
Part of the Furniture
*****

Karma: 12
Offline Offline

Gender: Male
Posts: 406


WWW
« Reply #19 on: March 12, 2010, 12:05:51 PM »

if you email me the theme i can have a look for you.
Logged

Snowboarding Goggles For all things Snowboarding and Skiing.  Goggles, Helmets, Gloves and Clothing.
The Fashion Agent We are your fashion agent.  Designer Clothes, sunglasses, headphones from top designer brands.
JhnStcks
Global Moderator
Part of the Furniture
*****

Karma: 12
Offline Offline

Gender: Male
Posts: 406


WWW
« Reply #20 on: March 12, 2010, 12:15:13 PM »

This is what the category.tpl file looks like on my site http://www.purplegiraffe.co.uk/5-designer-sunglasses
Logged

Snowboarding Goggles For all things Snowboarding and Skiing.  Goggles, Helmets, Gloves and Clothing.
The Fashion Agent We are your fashion agent.  Designer Clothes, sunglasses, headphones from top designer brands.
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009