Skip to content
Advertisement

Tag: hook-woocommerce

Display custom order meta data value in email notifications WooCommerce

Based on the following code Add a custom checkbox in WooCommerce checkout which value shows in admin edit order I tried to add my_field_name to order confirmation email. As I understand I have to use woocommerce_email_customer_details. So I came to this solution, unfortunately without the desired result. Answer You have some minor mistakes, via the if condition “$email->id == …”

Add a custom fee for percentage and fixed cost to specific payment gateway in WooCommerce

In WooCommerce I need to apply a custom handling fee for a specific payment gateway. A custom handling fee for percentage cost and a custom handling for per fixed cost. I have this 2 pieces of codes: A) PERCENTAGE COST – function Result frontend B) FIXED COST – function Result frontend The two distinct functions work perfectly separately. Now, I

Advertisement