Progress Bar While Processing Payment

  • Posts: 62
  • Thank you received: 0
11 years 3 months ago #116341

Is it possible to have a progress bar or even just a please wait dialog of some discription while a payment is being processed? If not can you please assist with a possible customisation I can do to support something like this.

We are using the HikaSerial component and and I have a hikaserial generator plugin using curl to generate serial numbers and associated software licenses. This combined with the eWay payment plugins curl request means the payments step can take a few seconds. During this time there is no indication that anything is happening and we seldom but occasionally get duplicated orders processed within seconds of each other. I don't know if this is definitely the cause but I thought it could be associated with clicking next while an existing payment and order is being processed.

Either way I would like to try and have some sort of notification that the order is being processed,as this type of warning dialog seems common in most online shops. I would also appreciate your feedback as to whether the duplicated order could be associated with further user interaction while the order is being processed, because if it is not I may need to try and figure out how this could occur also.

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

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
11 years 3 months ago #116513

Hi,

You can edit/override the view "eway_thanks" in order to add the HTML content you want.

To override the view (so you won't loose your modification when updating HikaShop), you have to copy
the file: "plugins/hikashoppayments/eway/eway_thanks.php"
to : "templates/YOUR_TEMPLATE/hikashoppayment/eway_thanks.php"

After that, you will be able to modify the file in the "templates" part, adding some text a "spinner" image, etc.
You can look at the paypal end view, it contains a spinner, it can be a good source of inspiration.

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: 62
  • Thank you received: 0
10 years 10 months ago #134891

Sorry I know it has been a while but I've finally got back to looking at this. Where does the eway_thanks view fit in the process. I have put a debug break at the begging of this view and this file is not parsed processed during payment. I should mention that my eway plugin has been customised to support recurring payments so my eway.php is based on a very early version. If there has been changes that support this view then mine will not have them.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #134920

Hi,
The "eway_thanks" view will display at the final step of your checkout process and only if your customer's order is/will be paid.

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

  • Posts: 62
  • Thank you received: 0
10 years 10 months ago #135025

That seems to be my "eway_end" view. What is the difference between "eway_end" and "eway_thanks".

In any case Adding a spinner to this view seems a bit late. By the time this view is loaded the order has been processed. What I am trying to do is have a spinner or some sort of notification that the order is being processed so they do not click the next button again. While the payment is being processed (eway payment plugin) and the serial numbers are being generated (HikaSerial generator plugin) there is no indication that anything is being processed and customers tend to get inpatient and click next again. Will adding a spinner to this view actually do this? Based on your comments it will only load after payment has been confirmed

My checkout is as follows if this is needed. I would like the spinner to occur between Payment and End as soon as you click Next on the payment step.
Login,Address,Shipping.Coupon
Custom Fields
Payment,Terms, Cart, Status
End

Last edit: 10 years 10 months ago by Devine.

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
10 years 10 months ago #135145

Hi,

Your browser is already displaying a spinner on the mouse pointer once you click on the button in order to tell the user that it is processing.
If you want something more, I think that the best is actually to edit the next button code in the file "step" of the view "checkout" via the menu Display>Views and add some javascript in order to replace the button itself by a spinner image once the user click on it (so in the onclick attribute).

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

Time to create page: 0.074 seconds
Powered by Kunena Forum