- Posts: 137
- Thank you received: 2
Inactive next-button or animation after checkout
- emergentec
-
Topic Author
- Offline
Less
More
15 years 6 months ago #12735
by emergentec
Inactive next-button or animation after checkout was created by emergentec
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
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 or Create an account to join the conversation.
15 years 6 months ago #12751
by nicolas
Replied by nicolas on topic Re: Inactive next-button or animation after checkout
Hi,
That's an interesting idea.
Hiding the next button once clicked should be really easy. Go in the menu Display->Views and edit the file step of the view checkout and change the line:
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\'))document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"');
to:
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->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"');
That's an interesting idea.
Hiding the next button once clicked should be really easy. Go in the menu Display->Views and edit the file step of the view checkout and change the line:
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\'))document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"');
to:
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->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 or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
Less
More
- Posts: 137
- Thank you received: 2
15 years 6 months ago #12761
by emergentec
Replied by emergentec on topic Re: Inactive next-button or animation after checkout
This could be a bit confusing for customers when the button only disappears.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #12762
by nicolas
Replied by nicolas on topic Re: Inactive next-button or animation after checkout
Then like this:
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->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"');
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->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 or Create an account to join the conversation.
Time to create page: 0.165 seconds