1

My question is identical to this Magento 2: Sorry, no quotes are available for this order at this time Change Message but the answer is not correct.

I wish to change the message to something like 'please enter postcode to see rates' I have tried extending Magento_checkout and amending the magento_checkout/web/template/shipping.html file where the message seems to be set and also the cart in magento_checkout/web/template/cart/shipping_rates.html but the standard message stills displays on the frontend.

anyone know how to change it?

Thanks.

1
  • your site is multi store ??? Commented Mar 25, 2020 at 20:14

2 Answers 2

2

Follow this path and change the you message text

First go the this path open the shipping.html

/module-checkout/view/frontend/web/template/shipping.html

enter image description here

See the code and change the you want to text.

And after must be run the this commands :-

php bin/magento s:up
php bin/magento s:s:d -f 
php bin/magento c:c
php bin/magento c:f

And check your output :-

enter image description here

Helpful this answer Please accept.

3
  • Thanks I have tried this already by overriding shipping.html in (/app/design/frontend/Theme/site/Magento_Checkout/web/template) is but no joy - standard message is still displayed.
    – Nath
    Commented Mar 26, 2020 at 13:13
  • Tried this but it seems like some other extension os overriding this file and using i18n\en_US.csv file to alter message. Two extensions seem to effect same message though. Which gets priority?
    – Nath
    Commented Mar 26, 2020 at 14:04
  • Managed to resolve it was an extension overriding this file but the message was set in i18n\en_US.csv file but as I'm using en_GB I had to copy rename the file to en_GB.csv then change the message and boom.. Thanks for your suggestion above it pointed me in the right direction..
    – Nath
    Commented Mar 26, 2020 at 14:26
0

If you are using Amasty OneStepCheckout, just change this file:

/vendor/amasty/module-one-step-checkout-core/view/frontend/web/template/onepage/shipping/methods.html

There will be this line, where you can change your desired text:

<!-- ko ifnot: rates().length > 0 --><div class="no-quotes-block"><!-- ko i18n: 'Sorry, no quotes are available for this order at this time'--><!-- /ko --></div><!-- /ko -->

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.