News:

Support the VirtueMart project and become a member

Main Menu

How to implement a 'back to category' link in product detail

Started by colinm, March 02, 2012, 01:21:57 AM

Previous topic - Next topic

colinm

I have a customised product detail page and would like to add a link that would take the user back to the category page to browse more products.  Is that a simple thing to add?


enock

At around line 75 and after Product Navigation End in default.php for product details add
<p><strong><A HREF="javascript:history.go(-1)"><em><img src="images/stories/goback.gif" width="75" height="28" border="0"></em></A></strong>
            </p>
obviously you'll need a graphic as a back arrow.

This only takes you back one step but I find people go into a product and want to go back the the category they came from