• Resolved maderlock

    (@maderlock)


    I’m using the latest version of the free plugin, and add to cart works fine, but when I press the checkout button I only get a spinner. After reloading the page the checkout button works, but not until then.

    I’ve tried to step through the code, but I cannot see how the checkout button is supposed to submit to paypal. The onclick only seems to deal with showing the cursor spinner, and there is no connected form to submit. I will admit that my javascript knowledge is a little limited.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Malcolm

    (@malcolm-oph)

    The whole of the StageShow Box-Office is an HTML form, and the Checkout button is a submit button. So, when the Checkout button is clicked the form should be submitted and the PHP code will redirect to PayPal if the checkout is successful.

    The onclick Javascript is there to just disable the controls on the Box-Office page while the page reloads, purely for appearance purposes.

    I’ve retested the version of StageShow on WordPress.org and have not seen any problem.

    Is your Box-Office form being submitted when you click Checkout?

    Thread Starter maderlock

    (@maderlock)

    Thanks for responding.

    There is a trolly form, but that is closed around the add to cart options, and the actual trolly has no form around it. Confusingly, there is no checkout form even after I reload the page (which is when it works). I can see an empty form tag <form></form> just after the StageShow Plugin Code – Starts Here comment. I could send you the DOM html if that would help?

    If you are not getting the issue then I’ll try disabling other extensions and see if one of them is somehow interfering.

    I did have to edit a file previously to get StageShow working with PHP7, but I assumed that would have been overwritten by upgrading. Is it safe to delete the entire stageshow directory and reinstall just in case? I’ll keep my settings, I assume?

    Thread Starter maderlock

    (@maderlock)

    Disabling all other plugins did not solve the issue. The cart is at http://www.acrobaticadventures.com/classes/

    Plugin Author Malcolm

    (@malcolm-oph)

    Yes, you can safely delete the entire StageShow directory and the settings will not be lost.

    It does appear that you have modified the original StageShow Javascript. Support is restricted to “standard” installations.

    Thread Starter maderlock

    (@maderlock)

    Yes, in the end yesterday I had to modify the javascript to force the page to reload after adding to the cart. It was the only fix I could think of to allow people to check out – and it worked, in a nasty hacky sort of way. After the show is finished today, I’ll revert the code back to the “standard” installation that was broken.

    Thanks for looking, and sorry I had to make the change before you had a chance.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Checkout submit only works after reload’ is closed to new replies.