jesusangel / wc-sermepa

Sermepa payment gateway plugin for WooCommerce
Other
28 stars 16 forks source link

Enhancement: Delay in "Redirecting to Sermepa" popup message #3

Closed humaniza closed 10 years ago

humaniza commented 10 years ago

Hi, Congrats on this great plugin. Some customers say that the "jump" to the external Sermepa page happens so quickly that they think they miss some information they can not read. They refer to the popup message "Thank you for your order. We are now redirecting you to Sermepa..."

I was able to improve the code changing the line 454 like this: setTimeout(function () { jQuery("#submit_sermepa_payment_form").click(); }, 10000);

I think it could be included in the final code, and make the timeout a configurable parameter.

I also translated the string shown in this step, contact me if I can contribute with my .po and .mo files

Thank you Regards, Juan Carlos Cardeñas

diggeridoo commented 10 years ago

Very useful tip, thanks! I also think it would be a good improvement, the message popup is too fast to read it as you said. All about money/payments must have clear and very informative steps.

jesusangel commented 10 years ago

Hi,

I have added the timeout to the code with a 5 seconds delay.

Kind regards,