Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
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!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025