Jump to content

Remove OPC guest checkout submit spinner when shipping results are recived


mikelucid

Recommended Posts

I am running PS 1.4.9 and my site is stretchshapes.net

 

I am using the built in One page checkout and guest checkout together and seems to work ok.

 

When a user signs up for a guest account there ia a 5-10 sec lag until the shipping results are displayed. To fix, I had to modify order-opc.js to add a spinner to let the customer know they were waiting for something.

 

I used this code to add the spinner on line 527

 

var spinner = $("<img src='/img/loader.gif' />");
  spinner.insertAfter(this);

 

Then I needed to remove it incase an error was thrown, so i added this to line 591

 

spinner.hide();

 

Now this all works great and looks smooth, but when the shipping results are delivered the spinner is still sitting there... where can I add spinner.hide(); to make it remove once the shipping results populate? I know someone out there can figure this out!

 

Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...