Include some javascript code in HEAD on WooCommerce Order received

Goal: I need to include an event snippet for specific tracking on the Woocommerce Order Confirmation page (the page immediately following a purchase). I must pass order_id, currency and total to the …

WooCommerce – removing country field from my-account page prevents from saving address

I sell and ship products only to one country so I don’t want to display billing_country and shipping_country field to the customers. I removed the fields from both checkout and my-account addresses …

WooCommerce cart subtotal: Display ‘free’ instead of ‘0,00’

i am searching for a solution to display ‘free’ instead of €0,00 in the WooCommerce Cart/Checkout. I know, there is a snippet for the Single Produkt itself, but is there a possibillity to change the …

Set a custom shipping cost on every 10th Order in WooCommerce

WP 5.3.3 I need to change shipping cost programmatically, after order creation. This code doesn’t affect: add_action(‘woocommerce_new_order’, ‘custom_shipping_costs’, 1, 1); function …

Add 50% discount per 3 products on the cheapest products (WooCommerce)

I’m adding the discount rule for every 3 products: 3,6,9,12,15.. on the cart and it should apply to discount 50% only the cheapest products. So if you have 9, only the 3 cheapest gets 50% off. This …

Check WooCommerce User Role and Payment Gateway and if they match – Apply fee

I’m struggling with applying a fee for an array of user roles if and when a specific payment gateway is selected. The code I’ve written works fine if I do not check the user role, but once I try and …

How to add a new field to my account details between other fields

With the snippet below we add a billing phone field to the account edit details. This works without problems, only we would have liked to add the new field between the email and the password change …

Change the order of admin billing address fields in WooCommerce orders

I have problem with woocommerce order in admin I want the billing_address_2 show at the end of the page as exmple bellow. can any one please help me.

Get a custom calculations as WooCommerce admin bulk orders action

i want to make order totals go under a calculation formula. i have drivers whom salary is per order. they deliver paid and unpaid orders. so They collect unpaid cod payments from the customers.At the …

Passing the previous page title to a custom checkout field in Woocommerce

With Woocommerce, is it possible to pass the previous page title to a custom checkout fields?