Disable button until ajax refresh is finished

  • Posts: 1119
  • Thank you received: 114
6 years 3 months ago #295988

Hi,

Is there a way to disable button inside checkout until ajax refresh is finished?

The issue is that when user switch between shipping or payment methods, due to bad internet or slow server response, they press finish button and don't wait till method is updated. This sometimes leads to wrong shipping or payment method selected.

Any advise please?

Kind Regards

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
6 years 3 months ago #295997

Hi,

Which button ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 1119
  • Thank you received: 114
6 years 3 months ago #296043

Hi,

My bad, the checkout finish button :)

Thanks

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
6 years 3 months ago #296050

Hi,

That's a good idea. We'll add that for the next version of HikaShop.
I've made the code and tested. Please try also and let us know if that's ok.
You need to: replace the file media/com_hikashop/js/checkout.js with the one in this zip and add the code:
id="hikabtn_checkout_next"
just after:
hikabtn_checkout_next"
in the file components/com_hikashop/views/checkout/tmpl/show_block_buttons.php

File Attachment:

File Name: checkout_2...7-30.zip
File Size:2 KB

Attachments:
Last edit: 6 years 3 months ago by nicolas.

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

  • Posts: 1119
  • Thank you received: 114
6 years 3 months ago #296083

Hi,

I have tested it a little bit and it works fine. If any issues occurs i will let you know through this topic.

As usual thanks for brilliant support Nicolas.

Have a great evening

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

Time to create page: 0.057 seconds
Powered by Kunena Forum