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!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025