Jump to content

Category Image


Recommended Posts

Hi guys!
 
I appreciate your help on this matter: I am working in a women's lingerie store and need to set up each category page with a medium size image and immediately below show the different products for that category in particular without showing the subcategories thumbnails. I need help in order to add the image for each category and delete the subcategory thumbnails.

 

The final product that I want to show is something similar like this page: http://www.soma.com/store/browse/shelf.jsp?cat=Panties&catId=cat40090

 

The page where I am working is this: http://www.anitakremer.com/presta/en/6-bras

 

Thanks in advance.

 

 

Link to comment
Share on other sites

go to category.tpl file and remove this code similar to this:

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

just remove it. your subcategories will disappear then

Link to comment
Share on other sites

×
×
  • Create New...