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

#   darken Website (JS/AJAX) when order is sent

##

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

Less More

- Posts: 28
- Thank you received: 0
-
-

15 years 7 months ago [\#13656](#13656) by [RemoteC](/forum/user/788-remotec "View RemoteC's Profile")  *[darken Website (JS/AJAX) when order is sent](/forum/4-how-to/13656-darken-website-js-ajax-when-order-is-sent#13656 "Hi!  Is it possible to access the JS that darkens the Website (e.g. Add to Cart-Button --&gt; 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 &quot;checkout / step.php&quot;. At the moment all I reached was the button to be inactive with document.getElementById(&#92;'hikashop&#95;checkout&#95;next&#95;button&#92;').disabled=true as onClick-Event.  Reason for this is that the server needs sometimes more than a second to redirect the user to the &quot;Thanks for purchase&quot;-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 &quot;Server is working, please wait a second&quot; (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!")* was created by *[RemoteC](/forum/user/788-remotec "View RemoteC's Profile")*

Hi!

Is it possible to access the JS that darkens the Website (e.g. Add to Cart-Button --&gt; 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzNjU2LWRhcmtlbi13ZWJzaXRlLWpzLWFqYXgtd2hlbi1vcmRlci1pcy1zZW50P3RtcGw9bWFya2Rvd24=) 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 [\#13663](#13663) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: darken Website (JS/AJAX) when order is sent](/forum/4-how-to/13656-darken-website-js-ajax-when-order-is-sent#13663 "Hi!  Is it possible to access the JS that darkens the Website (e.g. Add to Cart-Button --&gt; 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 &quot;checkout / step.php&quot;. At the moment all I reached was the button to be inactive with document.getElementById(&#92;'hikashop&#95;checkout&#95;next&#95;button&#92;').disabled=true as onClick-Event.  Reason for this is that the server needs sometimes more than a second to redirect the user to the &quot;Thanks for purchase&quot;-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 &quot;Server is working, please wait a second&quot; (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!")*

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](http://www.hikashop.com/en/support/forum/4-how-to/12735-inactive-next-button-or-animation-after-checkout.html#12762)

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

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