Post by platypuspuzzles » Tue Jan 25, 2011 8:46 pm

Hi,

I'm using 1.4.9.3, but this is probably just a stupid question that relates to all versions.

Once you've added an image to, say categories but you've decided you don't want an image to be used in categories as the product image layout on the category page looks better...

How do you remove the image? I don't want to replace it with another image, I just don't want anything there.

I'm stumped!

Active Member

Posts

Joined
Sun Jan 23, 2011 8:11 pm

Post by Chones » Thu Jan 27, 2011 6:20 am

That's not a stupid question, but it doesn't make much sense ;) I think I kind of understand.

If you have a sub-category within a category then you will need an image for it. Otherwise it will show the "no image" image as on this page (it's a camera image).
http://demo.opencart.com/index.php?rout ... ry&path=25

If you only want products on your category pages then just delete any sub-categories within your categories.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by Qphoria » Thu Jan 27, 2011 6:31 am

Actually I think he means he wants to remove it after setting it. There actually is no way to clear the image. I will add this ability

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by platypuspuzzles » Thu Jan 27, 2011 10:05 pm

thanks chones, but Qphoria was correct...other than that I'm a 'he' :)

So bugger, I'm stuck with an image in my 'category' :S

Thanks for the replies
P.S. Qphoria, I've recently purchased something off you...NAB module maybe. Thanks for the extension!

Active Member

Posts

Joined
Sun Jan 23, 2011 8:11 pm

Post by Chones » Fri Jan 28, 2011 2:48 am

Hi there, just had a look at your site - very nice. I guess what you mean is you want to remove the image on the Board Puzzles page.
Go to theme/Platypus/template/product/category.tpl and find

Code: Select all

<?php if ($thumb) { ?>
        <td><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></td>	  
        <?php } ?>
Comment it out. By that I mean add <!-- at the start and --> at the end.

Code: Select all

<!-- <?php if ($thumb) { ?>
        <td><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></td>	  
        <?php } ?> -->
That should work.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London
Who is online

Users browsing this forum: edkny, Semrush [Bot] and 123 guests