Hey,
For products in multiple collections, is there a way to code the last visited collection into the breadcrumb instead of showing a random collection in the breadcrumb?
-
Write script code at collection listing for product block.
-
When the user clicks on the product on the listing page.
-
Store the current collection name and its URL somewhere. replace that variable every time the user clicks on the product.
-
By this way you will have the last visited collection name and URL in the variable.
-
At the product page you just need to update the current breadcrumb value with stored info.
Is there a solution to these instructions?