Hi everyone! I need help for the first time and i hope someone can bail me out on this one.
I need to show some custom columns in the Woocommerce Bookings plugin.
I managed to do this by creating new fields with ACF and then using a function to copy over the values from already existing fields from the plugin to the new fields that i created.
The problem that i need fixing is to do that automaticly as soon as a new booking is payed.
To reiterate:
The plugin (Woocommerce Bookings) has fields that i cannot make them show up in columns using the Admins Columns plugin.
I created new fields with ACF and i can copy the values from the plugin's fields to the new fields i created using a function in JS, but i need to do this manually to every order.
I need that to be done automatically.
This is the code that i'm using to copy the values to another field:
Is there any code that does this automatically?
Thank you in advance for anyone that can help.
I need to show some custom columns in the Woocommerce Bookings plugin.
I managed to do this by creating new fields with ACF and then using a function to copy over the values from already existing fields from the plugin to the new fields that i created.
The problem that i need fixing is to do that automaticly as soon as a new booking is payed.
To reiterate:
The plugin (Woocommerce Bookings) has fields that i cannot make them show up in columns using the Admins Columns plugin.
I created new fields with ACF and i can copy the values from the plugin's fields to the new fields i created using a function in JS, but i need to do this manually to every order.
I need that to be done automatically.
This is the code that i'm using to copy the values to another field:
JavaScript:
jQuery('#_booking_person_6459').on('change click mouseover submit', e => {
jQuery('#acf-field_62c6f586975b7').val(parseFloat(e.target.value));
}) ;
Is there any code that does this automatically?
Thank you in advance for anyone that can help.
Last edited: