darken Website (JS/AJAX) when order is sent

  • Posts: 28
  • Thank you received: 0
13 years 7 months ago #13656

Hi!

Is it possible to access the JS that darkens the Website (e.g. Add to Cart-Button --> Window with Buttons appears, background is gray) for another button event. I want this for the button when an order is sent, has to be in the "checkout / step.php". At the moment all I reached was the button to be inactive with document.getElementById(\'hikashop_checkout_next_button\').disabled=true as onClick-Event.

Reason for this is that the server needs sometimes more than a second to redirect the user to the "Thanks for purchase"-site (you see the loading symbol in the browser) and maybe an impatient customer will click somewhere else and an error occurs. So I want to display somthing that clearly says "Server is working, please wait a second" (some animated bar or circle, like you have on nearly every Website today).

I thought this kind of pop-up could do the job, but maybe there is a simpler way to implement a kind of barrier for the customer.

kind regards!

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13663

Hi,

The dark background under the popup is generated automatically by mootools and the modal js library which themselves are called by joomla which is called by hikashop to display the popup. If you would like to do that, you would have to use the mootools display function directly when the next button is clicked on. We can't hep you on that. We're not specialists of mootools.
However, that is another thread with similar concerns: www.hikashop.com/en/support/forum/4-how-...-checkout.html#12762

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum