How to display customer email within the meta order data box

woocommerce_admin_order_data_after_shipping_address is the hook you’re looking for. add_action( ‘woocommerce_admin_order_data_after_shipping_address’, ‘my_function’ ); function my_function( $order ) { echo ‘<div class=”jquery-copy”><input type=”text” readonly value=”‘ . esc_attr( $order->get_billing_email() ) . ‘”></div>’; } There’s a chance you might want to use $order->get_shipping_email() instead.

How to add fee_lines using woocommerce rest API v3?

Here is my code that working fine. “fee_lines”: [ { “name”: “7.5% Booking Fee”, “tax_status”: “taxable”, “tax_class”: “”, “total”: “26.02”, “total_tax”: “26.02”, “taxes”: [], “meta_data”: [] }, { “name”: “Waiter Tip (5%)”, “tax_status”: “taxable”, “tax_class”: “”, “total”: “8.00”, “total_tax”: “8.00”, “taxes”: [], “meta_data”: [] } ]

Show shipping class in admin product list

You can add a new column to the product admin overview that displays the shipping class of each product. Here’s how you can do it: Add the following code to your theme’s functions.php file or a custom plugin: // Add new ‘Shipping Class’ column to the product admin overview add_filter( ‘manage_edit-product_columns’, ‘show_product_shipping_class_column’ ); function show_product_shipping_class_column( … Read more

Hook for Woocommerce checkout fields

Your code seems to be correct and should generally work for all fields. However, the ‘billing_postcode’ and ‘billing_city’ fields may be processed differently or not be considered required based on the customer’s country or other settings, which could explain why they’re not being modified. If you want to ensure a message appears for all fields, … Read more