Jump to content

product page breadcrumb and default category


Recommended Posts

Hi,

My shop is built under Prestashop 1.5.6.2

Many of my products belong to several categories.

Currently, on each related product page, the breadcrumb displayed is related to the product default category.

Let's take an example:
product p1 belongs to its default category C1
And product p1 also belongs to category C2

Currently, when surfing, when one reaches the product, whatever the path was, the displayed breadcrumb on the product page is :
Home > C1

I would like that the breadcrumb displayed is related to the way that the visitor followed to reach the product.
That is to say, that when a visitor first visits the C2 page, before reaching the product p1, I would like to have the here below breadcrumb on the product page :

Home > C2

Having this display, if the product is not suited for the visitor, he could easily goes up to the C2 category page where alternative to p1 items are offered.

I guess that I should have to amend two pages :
- /controllers/front/ProductController.php
- and themes/montheme/breadcrumb.tpl

But, I do not know what amendments have to be made.

I thank you anyone in advance for any advice.

Patrick


 

Edited by patrmich (see edit history)
Link to comment
Share on other sites

  • 9 months later...
  • 8 months later...
  • 2 years later...

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