Jump to content

Have Category thumb without product page image


djcaseanova

Recommended Posts

I have been using the GalaxyX theme. I have a few categories that have subcategories in them. I am able to add a thumbnail for the category, but that same thumbnail is put on the page that lists the products under that category. I do not want to display an image on the page that lists the products for several reasons. Is there a way to remove the image on the products page and leave it as thumbnail only?

Thanks! I don't have screenshots at the moment as I removed the images from the thumbnails to avoid this situation. If you need some, let me know!

Link to comment
Share on other sites

(I do not have a copy of GalaxyX, but) The Smarty code in probably all skins will be nearly the same. So, let's look at Foundation.

content.category.php

<h2>{$category.cat_name}</h2>
{if isset($category.image)}
<div class="row">
   <div class="small-12 columns"><img src="{$category.image}" alt="{$category.cat_name}" class="marg-bottom"></div>
</div>
{/if}
{if !empty($category.cat_desc)}
<div class="row">
   <div class="small-12 columns">{$category.cat_desc}</div>
</div>
{/if}
{if isset($SUBCATS) && $SUBCATS}

There is the category name, followed by a test for the presence of the category image. If there is an image (regardless of size), then show include the HTML to show it. Otherwise, do not include this HTML to show the image.

This is followed by a similar test for the presence of the category's descriptive text.

Then followed by a similar test to show the subcats.

To absolutely not show the category image regardless whether there is one or not:

From:

{if isset($category.image)}

To:

{if false && isset($category.image)}

Since a template has been modified, be sure to have CubeCart clear its internal cache.

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...