WordPress – Display WooCommerce selected variation additional fee from custom field
Based on Product custom field to enable a specific fee in Woocommerce answer, I have the following code: // Create and display Backend Product custom field add_action('woocommerce_product_options_general_product_data', 'ba_adding_custom_product_general_field'); function ba_adding_custom_product_general_field() { global $woocommerce, $post; echo '<div class="options_group">'; // Custom fields…