[Skip to main content](#vessel-content)

#   Adding back button

##

- **[Papermoon](/forum/user/39262-papermoon "View Papermoon's Profile")**
- [![Papermoon's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39262-papermoon "View Papermoon's Profile") Topic Author
- [ Offline](/forum/user/39262-papermoon)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 1 month ago [\#217706](#217706) by [Papermoon](/forum/user/39262-papermoon "View Papermoon's Profile")  *[Adding back button](/forum/26-product-category-display/879931-adding-back-button#217706 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.20 -- Browser(s) name and version -- : Firefox 39.0.3  Hi,  I am trying to add a back funktion to the product detail page to get back to the product listing (overview page). unfortunately the good old javascript.history back funktion works though, but not properly if the product listing has more than one pages. so the browser says on whitepage &quot;Document expired&quot;. So I need to set a real URL on the back button, but how does this work? Does HIKA not have a proper back-button funktion?  Thanks guys Kevin")* was created by *[Papermoon](/forum/user/39262-papermoon "View Papermoon's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.4.20
-- Browser(s) name and version -- : Firefox 39.0.3

Hi,

I am trying to add a back funktion to the product detail page to get back to the product listing (overview page). unfortunately the good old javascript.history back funktion works though, but not properly if the product listing has more than one pages. so the browser says on whitepage "Document expired". So I need to set a real URL on the back button, but how does this work? Does HIKA not have a proper back-button funktion?

Thanks guys
Kevin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzk5MzEtYWRkaW5nLWJhY2stYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 1 month ago [\#217717](#217717) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Adding back button](/forum/26-product-category-display/879931-adding-back-button#217717 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.20 -- Browser(s) name and version -- : Firefox 39.0.3  Hi,  I am trying to add a back funktion to the product detail page to get back to the product listing (overview page). unfortunately the good old javascript.history back funktion works though, but not properly if the product listing has more than one pages. so the browser says on whitepage &quot;Document expired&quot;. So I need to set a real URL on the back button, but how does this work? Does HIKA not have a proper back-button funktion?  Thanks guys Kevin")*

Hello Kevin,
As it's said on that thread : [ www.hikashop.com/forum/2-general-talk-ab...on-product-page.html](http://www.hikashop.com/forum/2-general-talk-about-hikashop/5617-go-back-button-on-product-page.html)

> 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&amp;lang=en](http://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:
> &lt;a href="#" onclick="history.back();return false;"&gt;Go back&lt;/a&gt;
>
> 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).

Hikashop don't have a proper back-button function, so you'll probably have to directly develop it.

Using the breadcrumb can be a solution.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzk5MzEtYWRkaW5nLWJhY2stYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Papermoon](/forum/user/39262-papermoon "View Papermoon's Profile")**
- [![Papermoon's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39262-papermoon "View Papermoon's Profile") Topic Author
- [ Offline](/forum/user/39262-papermoon)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 1 month ago -  11 years 1 month ago [\#217784](#217784) by [Papermoon](/forum/user/39262-papermoon "View Papermoon's Profile")  Replied by *[Papermoon](/forum/user/39262-papermoon "View Papermoon's Profile")* on topic *[Adding back button](/forum/26-product-category-display/879931-adding-back-button#217784 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.20 -- Browser(s) name and version -- : Firefox 39.0.3  Hi,  I am trying to add a back funktion to the product detail page to get back to the product listing (overview page). unfortunately the good old javascript.history back funktion works though, but not properly if the product listing has more than one pages. so the browser says on whitepage &quot;Document expired&quot;. So I need to set a real URL on the back button, but how does this work? Does HIKA not have a proper back-button funktion?  Thanks guys Kevin")*

Hi Mohamed,
thanks for your answer. At the moment I am trying to solve this with a backlink and the Product-Id $this-&gt;element-&gt;category_id (if someone is interested)
It sort of works, but it causes problems on other hand, but this will do it for the moment.

Thanks for the breadcrumb idea, this might be a solution, now I have to convince the designer to get rid of the back button :woohoo:

Thank you and cheers
Kevin

Last edit: 11 years 1 month ago by [Papermoon](/forum/user/39262-papermoon "View Papermoon's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzk5MzEtYWRkaW5nLWJhY2stYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
