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

#   Inactive next-button or animation after checkout

##

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

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 7 months ago [\#12735](#12735) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  *[Inactive next-button or animation after checkout](/forum/4-how-to/12735-inactive-next-button-or-animation-after-checkout#12735 "Hi!  When clicking on the next button at checkout (at the moment we have only free products) it takes 5-10 secondes until the order has finished. Is it possible to make the next-button inactive after it has been clicked or to show a animation so the user knows the process is still going on?  Best regards")* was created by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")*

Hi!

When clicking on the next button at checkout (at the moment we have only free products) it takes 5-10 secondes until the order has finished. Is it possible to make the next-button inactive after it has been clicked or to show a animation so the user knows the process is still going on?

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyNzM1LWluYWN0aXZlLW5leHQtYnV0dG9uLW9yLWFuaW1hdGlvbi1hZnRlci1jaGVja291dD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

15 years 7 months ago [\#12751](#12751) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Inactive next-button or animation after checkout](/forum/4-how-to/12735-inactive-next-button-or-animation-after-checkout#12751 "Hi!  When clicking on the next button at checkout (at the moment we have only free products) it takes 5-10 secondes until the order has finished. Is it possible to make the next-button inactive after it has been clicked or to show a animation so the user knows the process is still going on?  Best regards")*

Hi,

That's an interesting idea.
Hiding the next button once clicked should be really easy. Go in the menu Display-&gt;Views and edit the file step of the view checkout and change the line:
echo $this-&gt;cart-&gt;displayButton(JText::_('NEXT'),'next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\'))document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"');

to:
echo $this-&gt;cart-&gt;displayButton(JText::_('NEXT'),'next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\'))document.forms[\'hikashop_checkout_form\'].submit(); document.getElementById(\'hikashop_checkout_next_button\').style.display=\'none\'; return false;','id="hikashop_checkout_next_button"');

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 7 months ago [\#12761](#12761) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Inactive next-button or animation after checkout](/forum/4-how-to/12735-inactive-next-button-or-animation-after-checkout#12761 "Hi!  When clicking on the next button at checkout (at the moment we have only free products) it takes 5-10 secondes until the order has finished. Is it possible to make the next-button inactive after it has been clicked or to show a animation so the user knows the process is still going on?  Best regards")*

This could be a bit confusing for customers when the button only disappears.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyNzM1LWluYWN0aXZlLW5leHQtYnV0dG9uLW9yLWFuaW1hdGlvbi1hZnRlci1jaGVja291dD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

15 years 7 months ago [\#12762](#12762) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Inactive next-button or animation after checkout](/forum/4-how-to/12735-inactive-next-button-or-animation-after-checkout#12762 "Hi!  When clicking on the next button at checkout (at the moment we have only free products) it takes 5-10 secondes until the order has finished. Is it possible to make the next-button inactive after it has been clicked or to show a animation so the user knows the process is still going on?  Best regards")*

Then like this:
echo $this-&gt;cart-&gt;displayButton(JText::_('NEXT'),'next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\'))document.forms[\'hikashop_checkout_form\'].submit(); document.getElementById(\'hikashop_checkout_next_button\').disabled=true; return false;','id="hikashop_checkout_next_button"');

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

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