Back to category problem in eSport (template changes)

GK User
Tue Nov 27, 2012 11:15 am
When i want to go "back to category" after viewing an item detail, the e-Sport VM template is gone. Instead of that the original VM template shows up.

Example: first I click on: "Monster Energie" from the category "New Products"
(http://demo.gavick.com/joomla25/eSport/ ... rgy-detail)

after that I want to go back to category and click on: "Back to: Mountain Bike Helmets"
(http://demo.gavick.com/joomla25/eSport/ ... ke-helmets)

Now the template is changed to the Virtuemart template instead of the eSport template.

Does anyone have a solution for this problem?
User avatar
Fresh Boarder

teitbite
Thu Nov 29, 2012 2:54 pm
Hi

Please edit /html/com_virtuemart/productdetails/default.php

Find this line (line 88 in my copy)

Code: Select all
       <a href="<?php echo $catURL ?>" class="product-details" title="<?php echo $categoryName ?>"><?php echo JText::sprintf('COM_VIRTUEMART_CATEGORY_BACK_TO',$categoryName) ?></a>


than please replace href value to:

Code: Select all
javascript: history.go(-1)
User avatar
Moderator

GK User
Fri Nov 30, 2012 10:29 am
Thank you VERY much!
User avatar
Fresh Boarder

teitbite
Fri Nov 30, 2012 2:14 pm
Hi

No problem. Glad I could help :)

But this is not the best solution. If someone will come directly to product from another page than this link will send Him back to this page. Anyway it's great if users navigate around Your site only.
User avatar
Moderator


cron