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

#   previous / back button

##

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

Less More

- Posts: 38
- Thank you received: 0
-
-
- [](http://www.globeall.de)
-

12 years 4 months ago [\#163079](#163079) by [linpi](/forum/user/11791-linpi "View linpi's Profile")  *[previous / back button](/forum/27-checkout/869528-previous-back-button#163079 "-- url of the page with the problem -- :   tuenni.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.22 -- PHP version -- : 5.4.4 -- Browser(s) name and version -- : Firefox 30.0 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  in the checkout process with 3-4 pages, is there a possibility to add a previous button, not just a next button ? I know, in the checkout bar, there is possible do go back, but it is not intuitive for a regular user. thanks")* was created by *[linpi](/forum/user/11791-linpi "View linpi's Profile")*

-- url of the page with the problem -- : [ tuenni.ch](http://tuenni.ch)
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 2.5.22
-- PHP version -- : 5.4.4
-- Browser(s) name and version -- : Firefox 30.0
-- Error-message(debug-mod must be tuned on) -- : Error_message

in the checkout process with 3-4 pages, is there a possibility to add a previous button, not just a next button ?
I know, in the checkout bar, there is possible do go back, but it is not intuitive for a regular user.
thanks

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 4 months ago [\#163126](#163126) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[previous / back button](/forum/27-checkout/869528-previous-back-button#163126 "-- url of the page with the problem -- :   tuenni.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.22 -- PHP version -- : 5.4.4 -- Browser(s) name and version -- : Firefox 30.0 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  in the checkout process with 3-4 pages, is there a possibility to add a previous button, not just a next button ? I know, in the checkout bar, there is possible do go back, but it is not intuitive for a regular user. thanks")*

Hi,

Yes that's possible. Here is another thread talking about that:
[ www.hikashop.com/forum/4-how-to/63243-ad...-checkout-pages.html](http://www.hikashop.com/forum/4-how-to/63243-add-back-button-on-checkout-pages.html)

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

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

Less More

- Posts: 38
- Thank you received: 0
-
-
- [](http://www.globeall.de)
-

12 years 4 months ago [\#163232](#163232) by [linpi](/forum/user/11791-linpi "View linpi's Profile")  Replied by *[linpi](/forum/user/11791-linpi "View linpi's Profile")* on topic *[previous / back button](/forum/27-checkout/869528-previous-back-button#163232 "-- url of the page with the problem -- :   tuenni.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.22 -- PHP version -- : 5.4.4 -- Browser(s) name and version -- : Firefox 30.0 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  in the checkout process with 3-4 pages, is there a possibility to add a previous button, not just a next button ? I know, in the checkout bar, there is possible do go back, but it is not intuitive for a regular user. thanks")*

Hello,

sorry, I search for it in the forum, but didn't find it.

in step after &lt;/form&gt; I added
Code:

if($this-&gt;step!=0){ echo $this-&gt;cart-&gt;displayButton(JText::_('HIKA_BACK'),'back',$this-&gt;params,hikashop::currentUrl(),'history.back();return false;','id="hikashop_checkout_back_button"'); } ?&gt;

and I changed JText::_('BACK') in JText::_('HIKA_BACK') so it works also in other languages.

wouldn't be good to add this back button in the core Hikashop ? Isn't that a normal thing in a shops ?

By the way, thank you for your your prompt reply! I appreciate it.

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

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

Less More

- Posts: 38
- Thank you received: 0
-
-
- [](http://www.globeall.de)
-

12 years 4 months ago -  12 years 4 months ago [\#163237](#163237) by [linpi](/forum/user/11791-linpi "View linpi's Profile")  Replied by *[linpi](/forum/user/11791-linpi "View linpi's Profile")* on topic *[previous / back button](/forum/27-checkout/869528-previous-back-button#163237 "-- url of the page with the problem -- :   tuenni.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.22 -- PHP version -- : 5.4.4 -- Browser(s) name and version -- : Firefox 30.0 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  in the checkout process with 3-4 pages, is there a possibility to add a previous button, not just a next button ? I know, in the checkout bar, there is possible do go back, but it is not intuitive for a regular user. thanks")*

after more tests of this back button, it doesn't seam to work all the time.

I get "extinguished document"...

I'm trying with replacing
hikashop::currentUrl(),'history.back();return false;'
with
hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step-1).$url_itemid)
but it doesn''t work yet.

Last edit: 12 years 4 months ago by [linpi](/forum/user/11791-linpi "View linpi's Profile").

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

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

Less More

- Posts: 38
- Thank you received: 0
-
-
- [](http://www.globeall.de)
-

12 years 4 months ago [\#163249](#163249) by [linpi](/forum/user/11791-linpi "View linpi's Profile")  Replied by *[linpi](/forum/user/11791-linpi "View linpi's Profile")* on topic *[previous / back button](/forum/27-checkout/869528-previous-back-button#163249 "-- url of the page with the problem -- :   tuenni.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.22 -- PHP version -- : 5.4.4 -- Browser(s) name and version -- : Firefox 30.0 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  in the checkout process with 3-4 pages, is there a possibility to add a previous button, not just a next button ? I know, in the checkout bar, there is possible do go back, but it is not intuitive for a regular user. thanks")*

so I have a solution that works for me
Code:

if($this-&gt;step &gt; 1){ echo '&lt;a class="hikashop_checkout_back_button" href="' . hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step-1).$url_itemid) . '"&gt;' . JText::_('HIKA_BACK') . '&lt;/a&gt;'; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2OTUyOC1wcmV2aW91cy1iYWNrLWJ1dHRvbj90bXBsPW1hcmtkb3du) 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.046 seconds

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