Jump to content

BUG Smarty dev Catégory and product


Recommended Posts

Hello,

I am currently experiencing a problem. I want to display the category image above the breadcrump (breadcrumb). So I retrieved the code from the file category.tpl:
 

{if $category.image.large.url}
<div class="category-cover-img">
<img src="{$category.image.large.url}" alt="{$category.image.legend}">
</div>
{/if}

And put it in a template called: image-category.tpl In my breadcrump.tpl template I add an <include> at the top of the code:

{include file='catalog/listing/image-category.tpl'}
<DIV class="ps_breadcumb hidden-md-down">  <DIV class="container">    <DIV class="wrap clearfix breadcrumb hidden-sm-down">

Once on a category page my image is displayed correctly and in the right place. But when I click on a product, I have this error: (see photo) Can you help me?

In addition I just realized that I had the same error when I add an associated product

Capture.PNG

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...