Answer the question
In order to leave comments, you need to log in
How to get data (Form Data) from WooCommerce POST request using JS (jQuery)?
There is a site on which you need to set up the transfer of data on the composition of orders to analytics systems (I work with dataLayer), but the problem is that developers do not have access to the site code. I tried to catch the request myself, but I have little experience in JS, so I came to you with a question:
Can I somehow get product data from a POST request? JS programming language. Screenshot attached
Answer the question
In order to leave comments, you need to log in
Find the requester code and line up in it, the initiator code can be easily viewed in the network tab of the browser console. If you do not understand how to do this, it is better for you to turn to freelancing.
And if you receive data about using the REST API? Especially since you don't have access to the code. I think this is the easier way. Unless, of course, you need to catch an order before writing to the database.
PS I didn’t write that, apparently, now I understand. You don't have the ability to make requests to the site... Right?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question