I follow this thread that works perfectly: Set discount based on number of orders in WooCommerce. But in my case I need to apply the discount not to the order total, but to the shipping cost and I would like to do this only for a specific country, specifically UK. For example: ONLY First order: 6€ (flat rate shipping cost)
Tag: shipping
WooCommerce shipping fileds required state
I’m using the function below to show / hide the shipping address section of the checkout based on if a customer chooses local pickup or not. It works fine, however some of the fields in the shipping section are required and so the checkout won’t work if local shipping is selected. Is there a way to make these fields not
Custom shipping rates programmatically in Woocommerce
I Want to calculate custom shipping rates based on cart amount for woocommerce, My requirement as follows, Cart amount 0-10 => £4.99 (shipping_rate_id = flat_rate:12), 10-20 => £3.99 (…
Add checkout custom fields data to shipping packages for calculations in WooCommerce
I’m creating a plugin that will calculate custom shipping variants with API. I have a jQuery script that calculates postal and fias codes based on an entered address. $(“#billing_address_1”)….
Display shipping class name on WooCommerce single product pages
Need to display the product shipping class to product page! any ideas why this is not working? add_action(‘woocommerce_single_product_summary’, ‘display_product_shipping_class’, 15 ); function …
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 …
Always display shipping address in WooCommerce email notifications
WooCommerce used to show shipping address no matter which shipping method was selected during checkout, if you had to hide the shipping address from emails you had to do a custom job like in “https://stackoverflow.com/questions/38936283/hide-shipping-address-on-local-pickup-in-woocommerce-email-notifications/38937106#38937106” answer thread. After new updates, WooCommerce hides the shipping address from the order emails if local pickup is selected during checkout. I want to show
WooCommerce : assign member to shipping zone
is there a way to assign a shipping zone to a member ? I want to do that because I use WooCommerce for a food delivery site and I need to send an email to the closest Restaurant when someone makes an order I was thinking about adding an email field in the shipping zone table like below (sorry my
Disable specific payment methods for specific shipping zones when cart subtotal reach a specific amount in Woocommerce
In Woocommerce, I’m trying to remove “Cash on delivery” payment method when cart subtotal is up to $250 for specific shipping zones names (Zone 1, Zone 4 and Zone 7). All others zones must not have …
Make Shipping Method fields Mandatory on Woocommerce checkout page
I’m sure that there is a quick bit of code out there that will solve this issue, but I’m struggling to find it. I have a WordPress/WooCommerce website set-up and am using the WooCommerce Shipping Pro with Table Rate plugin to specify delivery rates as well as the local pickup option, within WooCommerce’s shipping settings. This is all working fine,