I’m using the most up to date version of open cart.
What I’m wanting to do is show the image from the store category page on every page page, as I’m wanting to implement it into the menu. You can see what I mean here: http://www.tomrawcliffe.com/portfolio/strings-r-us/
In the cetegory.tpl file I found:
<?php if ($thumb) { ?>
<div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ? >" /></div>
<?php } ?>
But I’ve come to realise that it’s not as easy as copy and pasting this into the header.tpl etc.
What do I do!?
OK, open up
/catalog/controller/common/header.phpFind this code
change it to
Then in
/catalog/view/theme/[your-theme-name]/template/common/header.tplsimply use$category['thumb']wherever you need itnote that I’ve set the width and height to 100px in the above code, and you should change it as appropriate