VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: colinm on March 02, 2012, 01:21:57 AM

Title: How to implement a 'back to category' link in product detail
Post by: colinm on March 02, 2012, 01:21:57 AM
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?
Title: Re: How to implement a 'back to category' link in product detail
Post by: PRO on March 02, 2012, 02:05:51 AM
http://forum.virtuemart.net/index.php?topic=92756.msg305073#msg305073

last field I added

and
http://forum.virtuemart.net/index.php?topic=90935.0
Title: Re: How to implement a 'back to category' link in product detail
Post by: enock on March 02, 2012, 03:36:12 AM
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