Breadcrumbs a product with multiple collections

Breadcrumbs a product with multiple collections

pedroflores
Visitor
1 0 1

Hi
I have a question
Using breadcrumbs in products.
Can I get the last visit collection page to include in my breadcrumb
For instance
If I go to the Roses collection and I choose a product like the red rose
On the product Red Rose page I need to have in breadcrumb Home > Rose > Red Rose
But Red Rose also is set up on another collection page.
It's possible or not

 

Thanks

Reply 1 (1)

gr_trading
Shopify Partner
2043 149 206

Hi @pedroflores ,

 

For possibility question. Yes, it's possible.

 

Considering you have knowledge of coding, below is the flow.

 

1. Write script code at collection listing for product block. 

2. When the user clicks on the product on the listing page.

3. Store the current collection name and its URL somewhere. replace that variable every time the user clicks on the product.

4. By this way you will have the last visited collection name and URL in the variable.

5. At the product page you just need to update the current breadcrumb value with stored info.

 

Hope it will help! 

 

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee