Shipping default message
-
Hi,
Before when customers didn′t fill in a shipping adress they got a message to fill in the shipping details for shipping to be applied.Now Woocommerce just takes the default message from “Places not covered by your other zones”
I want to display a message for my customers to fill in shipping details for shipping to be applied.
All customers think we have no shipping at the moment and it′s quite annoying to answer all those calls and explain.Help please..
-
Hi @wos2021,
You can do that using a simple function
function zworthkey_shipping_add_error( $error ) { if( 'Places not covered by your other zones' == $error ) { $error = 'Message you want to display'; } return $error; } add_filter( 'woocommerce_add_error', 'zworthkey_shipping_add_error' );
This will change the error message. You just have paste this code to your themes function.php file.
I hope everything is clear. if not let me know.
Thank You
Thank you for the reply.
Isn′t this for when customers are out of the shipping zones ?Hi @wos2021,
Now Woocommerce just takes the default message from “Places not covered by your other zones”
Can you please tell me a little more about this message? What notice is being displayed?
If I do not enter a shipping address this is the warning I get on checkout:
Link to image: https://i.imgur.com/2xk4jIN.pngCan you also share your System Status and your shipping settings as found under WooCommerce > Status and WooCommerce > Settings > Shipping? I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on that page, then paste the URL in this thread.
Thanks.
Hi @wos2021,
My answer is to give you a way to add you error message you want. You mentioned that the error in your message. If you want you can change the message by changing the if loop.
It will work.
Thank you
If I haven′t filled in any information at all, i.e name, adress etc in the checkout it displays the text from “Places not covered by your other zones”.
So the clients gets confused about this and think we don′t do delivery.
I want it to say something like: “Please fill in your information to see shipping options” if nothing is filled in from the personal info.
If the customer is outside the zones they should get a message like: You′re out of our shipping zones we can only offer collection”.
Heres the settings: https://snipboard.io/Jsr2ih.jpg
The message that is displayed is the out of zones message. I have marked it with red in the image.
I hope makes it more clear.
-
This reply was modified 3 years, 5 months ago by
wos2021.
Hi @wos2021,
Thanks for providing additional details.
If I haven′t filled in any information at all, i.e name, adress etc in the checkout it displays the text from “Places not covered by your other zones”.
Well, with the basic setup of WooCommerce and Storefront theme I can’t see that warning in the front end of my test store. These are all possible warnings shown when you do not enter any information on checkout fields:
Link to image: https://snipboard.io/1jRpKt.jpgIt sounds like that text is added by your theme or a plugin. So, you’ll want first to figure out where this message comes from, and afterward, get in contact with the developers and ask how you can change that message. Normally, you can find out by checking the HTML output or via conflict testing.
Thanks.
@rainfallnixfig thanks for your reply.
I don′t think you understand my problem.
To recreate this for me it′s:
1. add product to the cart
2. go to checkout
3. in the checkout page it directly states that I′m out of the zone.And that′s my problem. When I go to the cart it shouldn′t state that I′m out of the zone since I just came to the checkout page and haven′t filled in my info.
It should probably say something like: “Fill in your details for shipping alternatives” or something.
I know where the message comes from, it comes from the shipping settings message I have put there.
-
This reply was modified 3 years, 5 months ago by
wos2021.
Hi @wos2021,
It might be that you have a default customer location that does not match any zone, thus the reason you’re finding customers already matched to the default zone.
You’ll want to go to WooCommerce → Settings → General and set the default customer location to “No Location by Default”.
In addition, you could also set WooCommerce not to show shipping costs until an address is entered in WooCommerce → Settings → Shipping → Shipping Options:
Link to image: https://snipboard.io/Thpvcj.jpgLet us know how it goes when you try the above.
Thanks.Hmm I tried the
You’ll want to go to WooCommerce → Settings → General and set the default customer location to “No Location by Default”.
But it′s still the same. I have uploaded a video of the problem maybe you can see it more clear. Please see it here: https://easyupload.io/m5ir3i
One thing to have in mind is that all the tests I am doing is in incognito mode
I have also enabled the shipping debug mode which you can see in the video, when it gives me the message about which shipping zone the customer has been matched with.
I have also an image of my settings here: https://snipboard.io/iv2Ow3.jpgAnd no it′s not about the payment issuer because I use another payment issuer for another site and it′s the same.
If I hide the shipping options customers think we don′t do shipping.
This is very important to me so please help.
-
This reply was modified 3 years, 5 months ago by
wos2021.
Hi there,
I have uploaded a video of the problem maybe you can see it more clear
That was definitely an excellent idea as we have better context now to figure out what might be generating that warning on your Cart and Checkout pages.
To me, that message does not seem it’s added by WooCommerce. Either your theme or a plugin is adding this content. I’m more likely to think that it’s the SiteGround Optimizer Plugin you may have installed on your site that is causing this. If you have installed that plugin can you temporarily disable it and check again?
Ideally, as suggested earlier, you’d want to perform a full conflict test following our support documentation:
https://docs.woocommerce.com/document/how-to-test-for-conflicts/
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.
Reactivate the theme first and check again. Then, go on and reactivate your other plugins one by one, testing after each, until you find the one causing conflict.
Thanks.
I’m more likely to think that it’s the SiteGround Optimizer Plugin you may have installed on your site that is causing this. If you have installed that plugin can you temporarily disable it and check again?
Did this, still the same.
Temporarily switch your theme to Storefront
Disable all plugins except for WooCommerce
Repeat the action that is causing the problem
If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.I have deactivated ALL plugins except Woocommerce, still the same behaviour see the video, incognito mode: https://easyupload.io/nq6obn
So now what ?
I think this came with the latest woocommerce updates to be honest…
-
This reply was modified 3 years, 5 months ago by
wos2021.
Do you have memcached on?
No, but it doesn’t seem to be SG related since I turned all plugins off except Woocommerce and storefront, and it still doesn’t work.
And one of my clients is not on SG server and has the same issue.Hi @wos2021,
Okay, it sounds this can be turned off unticking “Debug Mode” in WooCommerce > Settings > Shipping > Shipping Options:
Link to image: https://i.imgur.com/GIqhmBt.pngHope this can help.
@rainfallnixfig I know this but that’s not my issue…
Please refer to my earlier posts.
Only enabled debug mode so that I can see what I get for answer to show it in the video that I recorded for you guys.My main problem is, again, that if the customer picks products, puts them in the cart and goes to checkout it automatically shows that the customer is out of the zone.
I wanted to show a message like: “please write in your address to be able to see she brings alternatives”
As it is now it automatically shows the messages from out of zone, I don’t want that.
I want it to show out of zone only when the customer really is out of zone. -
This reply was modified 3 years, 5 months ago by
- The topic ‘Shipping default message’ is closed to new replies.