Magento - Back link to catalog page or filtered by category from product details page
Need to add the "ba开发者_Python百科ck link" to the catalog page from the product details page.
If the user has filtered product, the filter settings should be preserved.
you can do this with javascript
<a href="javascript: history.go(-1)">Go Back like never before</a>
In very general terms, look at the HTTP_REFERER
header. Just be aware that some folken (like myself) don't use it.
精彩评论