Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #683172

    Hi,

    i want to add a second submit button for a request a quote function at the checkout page.
    I’m not able to get the $_POST[‘woocommerce_checkout_place_order’] variable of the standard submit button.

    Is the checkout processed through ajax by the Enfold theme?
    How can i access this variable?

    Cheers,
    Jacques Mannon

    #684304

    Hey zweiw,

    Please refer to this post – https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    Best regards,
    Yigit

    #684755

    This answer doesn’t help.

    When clicking on the default “Place order” submit button on the checkout page, enfold makes an ajax request to validate and process the checkout.
    With js disabled, i’m able to get the value of the submit button, but with js enabled, it does not work with the ajax request.

    I tried to get the value over different hooks like “woocommerce_checkout_process”, but it is always null.

    So i need you to tell me, if the variable gets flushed or what could cause this problem. Or where can i find the ajax request in the code?
    I think, the submit button value is not send with the ajax request.

    #684798

    Hey!

    Yigit reply, is how we do handle things.
    WHat you need to do is outside the main scope of our Support Policy and I am afraid not a lot we can do about that.

    Please consider to hire a freelance, to help you with a solution/.

    Thanks a lot for your understanding

    Best regards,
    Basilis

    #684965

    Hi,

    your support policy says:
    “Technical questions about the item’s built-in features, functionality and third party plugins.”

    This is a technical question about the functionality of your theme. You don’t have to write me code, i can do that by myself.
    I just need to know, where i can find this ajax request, or what possibility i would have to get this variable.
    I think it should be possible to fire my own ajax request before the other one.

    Best regards,
    Jacques

    #687709

    Hi,

    I hope these links might be helpful for you.

    https://gist.github.com/mikejolley/1604009

    http://wpquestions.com/question/showChrono/id/8738

    We would love to help you further but to go into specific details would take a lot of time.

    If you need more specific info about the WooCommerce plugin, request you to kindly contact WooCommerce support as they know their plugin the best.

    Best regards,
    Vinay

    #688450

    Hi,

    thank you for the links.
    I’m already on this way, i have created a new radio field where the customer has to chose if it is a request or not.
    It seems that this is the simplest way to include what i need.

    Thx, this thread can be closed.

    Best regards,
    Jacques

    #688454

    Hi,

    Glad you found a workaround.

    Please feel free to get in touch with us via new ticket if you have more questions.

    Best regards,
    Vinay

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Need to access the Submit Button on checkout page’ is closed to new replies.