Go Back Button on Product Page

  • Posts: 4
  • Thank you received: 0
13 years 9 months ago #5617

Greetings,
Is it possible to add a "go back" button to a product description page, so that the user may return to the previous page and continue to see all the products of the same category?
Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 82721
  • Thank you received: 13338
  • MODERATOR
13 years 9 months ago #5619

There is no go back button option in hikashop. However, HikaShop integrates with the breadcrumb module of joomla. So, you could display that breadcrumb module and it would display the tree of categories on the product page. For example, if you look at our demo website on that page www.demo.hikashop.com/index.php?option=c...y_pathway=11&lang=en you can see the breadcrumb module displaying the categories above the product page.

Alternatively, you can also edit the file show of the view product and add such code:
<a href="#" onclick="history.back();return false;">Go back</a>

However, that will return to the previous page which might not be the page where you have the products of the same category (for example, if you access the product page via a link on this forum, pressing that go back button would make you return on that forum, like the back button of your browser).

The following user(s) said Thank You: viki667

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 2
  • Hikashop Essential
9 years 4 months ago #204986

Une autre possibilité peut être / another code :
<a href="/YOUR_URL/" class="btn button"><?php echo JText :: _('CONTINUE_SHOPPING');?></a>

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum