Jump to content

Displaying image and description for category pages


Recommended Posts

Hi everyone,

Thanks for taking the time to help.

I'd like a category image to be displayed next to the category title and I'd like the category description beneath the category title (see the image I have attached).

Example: if i click "silver earrings" in my category box, i'd like to see a page showing all silver earrings. The category title of this page is of course "silver earrings". I'd like a picture of silver earrings to appear to the right and the category's description about silver earrings to appear beneath the category title.

My products-list.tpl looks like this:

>{if isset($products)}
   <!-- Products list -->
</pre>
<ul>
   {foreach from=$products item=product name=products}


{if $product.new == 1}{l s='new'}{/if} {$product.manufacturer_name|escape:'htmlall':'UTF-8'} - {$product.name|escape:'htmlall':'UTF-8'}
getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />


               {if $product.on_sale}
{l s='On sale!'}
               {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d' >= $product.reduction_from))}
{l s='Price lowered!'}
               {/if}
               {if !$priceDisplay || $priceDisplay == 2}{convertPrice price=$product.price}{if $priceDisplay == 2} {l s='Tax inc.'}{/if}{/if}
               {if $priceDisplay}{convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s=''}{/if}{/if}

{l s='Se detaljer'}




   {/foreach}
</ul>
<br>   <!-- /Products list --><br

33928_mcDqDeJFYXCo3V1wxQKx_t

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...