Based on Add an additional cost to flat rate shipping each 3 items in Woocommerce answer code, I have made some changes to add an additional cost to flat are shipping method each 2 items (instead of …
Tag: shipping-method
Disable shipping methods having a specific word and based on a shipping class in WooCommerce
I’ve used a Business Bloomer snippet and tweaked it a bit to unset some shipping methods depending on a shipping class of items in the cart. It works fine with the 4 shipping methods I have tested with but in order to fully work on my website, I have to list all shipping methods values manually and I have A
Disable free shipping for specific coupon codes in WooCommerce
I am trying to remove the free shipping option in Woocommerce when someone uses a specific coupon code. I found this question which is very relevant to my question. The answer bellow seems really …
WooCommerce – How to insert icons before delivery method
Good day, Could anyone please help me how to insert icons before delivery method? I use this filter This works normally for local pickup and Zásilkovna, but not for the last two. I found the id I have with them at the value “value” in the input. Would anyone know how to help me? Or how to do this using
Allow only Local Pickup for specific products outside specific Shipping Zone in WooCommerce
I have several products in the store, however one product (flammable) can only be shipped via a specific shipping company; Unfortunately that company can’t reach the whole country. So in case the customer buys the flammable product and it’s outside the coverage of the only company that can ship the product, he should not see any other shipping option except
Local pickup custom percentage discount in WooCommerce checkout
I am using Local pickup shipping option custom percentage discount in Woocommerce answer code to make local pickup discount of 2% on Woocommerce. So people who choose to pickup their order get a discount on their total amount. This code is great, but I would like to hide it on cart page, and to only show up on the checkout
How to get WooCommerce shipping methods cost and settings?
I’m trying to get all shipping methods, with their rates and title. But when i use WC()->shipping->get_shipping_methods() it will only return empty rates array, and empty title string. Here is a dump: I tried to Google the issue, but nothing really helped. Does anyone know what could be the issue? Thanks a bunch! Answer Because WC()->shipping->get_shipping_methods() doesn’t load the shipping
Disable only flat rate shipping method when free shipping is available in Woocommerce
I am using Hide specifics Flat Rates when Free Shipping is available in WooCommerce 3 lightly changed answer code to hide all shipping methods except one. The only method I want showing is a rate from the “Woocommerce Advanced Shipping” plugin. I am using the correct rate ID etc… Everything works fine except when a customer tries to click that
Shipping cost discount based on a shipping classes in Woocommerce
I’m trying to apply a discount to one shipping class for products currently in a cart. This is applied on the checkout view. In Woocommerce backend, the option is set to charge each shipping class individually. Also, I use only one shipping method named “flat rate”. Based on Override all shipping costs for a specific shipping class in Woocommerce, the
Shipping cost based on cart total weight in Woocommerce 3
In my Woocommerce Webshop I do have different Products. I would like to have shipping cost calculated on total cart items weight: from 0 to 6 Kilos the cost is 5 €, from 6 to 12 Kilos the cost is 9 € Actually if I have a Product which is 1 Kilo the shipping cost is 5 €, but if