I need to export order data to google sheets using a webhook, the basic order data exports well.
I need to include the data from the product input fields added by Booster.
Have tried this in the google sheet apps scripts, but cant get it to work.
function doPost(e) {
var myData = JSON.parse([e.postData.contents]);
var product_f1 = myData._wcj_product_input_fields_local_1;
How do I include the Booster data in the webhook feed?
Thanks
I cant tell what’s in that variable, I am struggling to work out how to see what data fields are in it.
I guessed at “myData._wcj_product_input_fields_local_1”, but I get nothing.
Would the function below with doPost(e) contain Booster data? WIs that expected or not please, or is something else required in WordPress/Woocommerce to include it.
function doPost(e) {
var myData = JSON.parse([e.postData.contents]);
I now have it working. I bought the Pro version of the Google Connector and it allows selection of additional fields.
Is there a way to copy fields to another product, so that the field names in the export will remain the same, or should I use global field?