Hi BNK SMILE,
It is possible to remove the weight based fee(free) from the cart page.
You can find the code snippet for the same.
1
2
3
4
5
6
add_filter( ‘woocommerce_cart_no_shipping_available_html’, ‘change_no_shipping_text’ ); // Alters message on Cart page
add_filter( ‘woocommerce_no_shipping_available_html’, ‘change_no_shipping_text’ ); // Alters message on Checkout page
function change_no_shipping_text() {
return “Please call us to receive a shipping quote and complete your order: (888) 555-5555”;
}
Let us know in case anything else is required from our end.
Hi BNK SMILE,
Configure only the weight under 2 KG in this plugin. When the Customer order above 2KG No Shipping Available message will be displayed. And use the following code to customise the message.
add_filter( 'woocommerce_cart_no_shipping_available_html', 'change_no_shipping_text' ); // Alters message on Cart page
add_filter( 'woocommerce_no_shipping_available_html', 'change_no_shipping_text' ); // Alters message on Checkout page
function change_no_shipping_text() {
return "Please call us to receive a shipping quote and complete your order: (888) 555-5555";
}
Let us know in case anything else is required from our end.
Hi there,
Thank you so much for your code snippet. I am not sure I did communicate correctly in my query earlier on. I apology if I did not properly explain what my issue is.
I meant if it is possible to remove Weight Based Fee (free) option regardless of what weight it is because it is not a free shipping anyhow. I think it will give a confusion to a customer who may select a free option which is incorrect.
I tried your code snippet it still displays Weight Based Fee (free) option. The link is the result after I added the code snippet and where I added in. I may did incorrectly. If so, I am sorry as I am still learning the codes.
https://app.box.com/s/2p5xcfjn9k6tuzphetdj2zh6185o15w7
Thank you once again.
Regards,
Hi BNK SMILE,
We have a workaround for your problem.
You can remove “weight based rule” completely from the plugin for the weight more than 2 kg.
In that case, you will get a message “there are no shipping methods available”. Now, here the code snippet shared before can change this message from “there are no shipping methods available” to “contact us”.
Also there is one option in our premium plugin which we can remove the “Free” text that comes up with the rule.
I hope i was able to convey properly.
Hi there,
Thank you so much. I will have a look at the premium plugin.
Regards