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

#   Next Button displayed both top and bottom

##

- **[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")**
- [![condorazul's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4911.jpg)](/forum/user/4911-condorazul "View condorazul's Profile") Topic Author
- [ Offline](/forum/user/4911-condorazul)

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 10 months ago [\#139250](#139250) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139250 "I would like to display the next button in checkout in both top and bottom how can i do it?")* was created by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")*

I would like to display the next button in checkout in both top and bottom how can i do it?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDg5OC1uZXh0LWJ1dHRvbi1kaXNwbGF5ZWQtYm90aC10b3AtYW5kLWJvdHRvbT90bXBsPW1hcmtkb3du) 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 10 months ago [\#139354](#139354) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139354 "I would like to display the next button in checkout in both top and bottom how can i do it?")*

Hi,

There is no option for that. You would have to edit the file "show" of the view "product" via the menu Display&gt;Views and copy/paste the code of the next/previous buttons at the bottom.

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

- **[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")**
- [![condorazul's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4911.jpg)](/forum/user/4911-condorazul "View condorazul's Profile") Topic Author
- [ Offline](/forum/user/4911-condorazul)

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 10 months ago [\#139366](#139366) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139366 "I would like to display the next button in checkout in both top and bottom how can i do it?")*

Ive already tried but when i copy paste it breaks evwrything and display error message. Can you please tell me wich code to copy and whre to insert it. It shold be at the syart bellow the navigation steps

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDg5OC1uZXh0LWJ1dHRvbi1kaXNwbGF5ZWQtYm90aC10b3AtYW5kLWJvdHRvbT90bXBsPW1hcmtkb3du) 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 10 months ago [\#139405](#139405) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139405 "I would like to display the next button in checkout in both top and bottom how can i do it?")*

It's that code: Code:

if(!empty($this-&gt;links-&gt;previous)) echo "&lt;a title='".JText :: _('PREVIOUS_PRODUCT')."' href='".$this-&gt;links-&gt;previous."'&gt;&lt;span class='hikashop_previous_product'&gt;&lt;/span&gt;&lt;/a&gt;"; if(!empty($this-&gt;links-&gt;next)) echo "&lt;a title='".JText :: _('NEXT_PRODUCT')."' href='".$this-&gt;links-&gt;next."'&gt;&lt;span class='hikashop_next_product'&gt;&lt;/span&gt;&lt;/a&gt;"; echo "&lt;div class='clear_both'&gt;&lt;/div&gt;";

that you can put at the end of the file, after adding an opening PHP tag: &lt;?php at the beginning.

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

- **[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")**
- [![condorazul's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4911.jpg)](/forum/user/4911-condorazul "View condorazul's Profile") Topic Author
- [ Offline](/forum/user/4911-condorazul)

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 10 months ago -  12 years 10 months ago [\#139422](#139422) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139422 "I would like to display the next button in checkout in both top and bottom how can i do it?")*

Are you sure is that code? i mean i want the button next in checkout not the product buttons, the button y want is continue shopping and i think it is in step view.
&lt;?php

if($this-&gt;continueShopping){
if(strpos($this-&gt;continueShopping,'Itemid')===false){
if(strpos($this-&gt;continueShopping,'index.php?')!==false){
$this-&gt;continueShopping.=$url_itemid;
}
}
if(!preg_match('#^https?![:/](/irritated.gif ":/")/#',$this-&gt;continueShopping)) $this-&gt;continueShopping = JURI::base().ltrim($this-&gt;continueShopping,'/');
echo $this-&gt;cart-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,JRoute::_($this-&gt;continueShopping),'window.location=\''.JRoute::_($this-&gt;continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"');
}
}
?&gt;

&lt;div class="clear_both"&gt;&lt;/div&gt;
i copy that code but it does not work it displays an error

Last edit: 12 years 10 months ago by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile").

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

12 years 10 months ago [\#139450](#139450) 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 *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139450 "I would like to display the next button in checkout in both top and bottom how can i do it?")*

Hi,
You'll just have to use the following code at the beginning of the checkout view's file of the first action of each step of your checkout workflow ("Hikashop-&gt;System-&gt;Configuration-&gt;Checkout"), for example if the first action of one of your step is address, then you'll have to add this code at the begining of the address file of the checkout view of your front-end template through "*Hikashop-&gt;Display-&gt;Views*" : Code:

if($this-&gt;nextButton) { if($this-&gt;step == (count($this-&gt;steps) - 2)) { $checkout_next_button = JText::_('CHECKOUT_BUTTON_FINISH'); if($checkout_next_button == 'CHECKOUT_BUTTON_FINISH') $checkout_next_button = JText::_('NEXT'); } else $checkout_next_button = JText::_('NEXT'); echo $this-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"'); $button = $this-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; }

Also, don't forget to add this code around PHP tags : &lt;?php YOURCODE ?&gt;

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

- **[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")**
- [![condorazul's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4911.jpg)](/forum/user/4911-condorazul "View condorazul's Profile") Topic Author
- [ Offline](/forum/user/4911-condorazul)

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 10 months ago [\#139494](#139494) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139494 "I would like to display the next button in checkout in both top and bottom how can i do it?")*

and there is no way to add it in step before the form starts? it woould be in all the pages.
i tried copy/paste there but did not work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDg5OC1uZXh0LWJ1dHRvbi1kaXNwbGF5ZWQtYm90aC10b3AtYW5kLWJvdHRvbT90bXBsPW1hcmtkb3du) 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 10 months ago [\#139522](#139522) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Next Button displayed both top and bottom](/forum/27-checkout/864898-next-button-displayed-both-top-and-bottom#139522 "I would like to display the next button in checkout in both top and bottom how can i do it?")*

Before the form starts, no you should avoid it as it might not work in some cases.

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

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