-
AuthorPosts
-
September 7, 2016 at 2:47 pm #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 MannonSeptember 9, 2016 at 6:25 pm #684304Hey zweiw,
Please refer to this post – https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
Best regards,
YigitSeptember 11, 2016 at 2:21 pm #684755This 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.September 11, 2016 at 7:11 pm #684798Hey!
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,
BasilisSeptember 12, 2016 at 10:07 am #684965Hi,
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,
JacquesSeptember 16, 2016 at 8:15 pm #687709Hi,
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,
VinaySeptember 19, 2016 at 1:35 pm #688450Hi,
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,
JacquesSeptember 19, 2016 at 1:41 pm #688454Hi,
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 -
AuthorPosts
- The topic ‘Need to access the Submit Button on checkout page’ is closed to new replies.