Page 1 of 1

[SOLVED] Is there a way to change/customize the 'Shipping error ' - No Shipping options available. Please contact us'?

Posted: Fri Mar 26, 2021 8:13 pm
by ri2k
As, the title says, I want to customize the text for shipping warning - No Shipping options are available. Please contact us'. Is there a way to do it? Any twig file?

Re: Is there a way to change/customize the 'Shipping error warning' - No Shipping options are available. Please contact

Posted: Fri Mar 26, 2021 8:24 pm
by JNeuhoff
That would require a change in the following language files:

catalog/language/en-gb/api/order.php
catalog/language/en-gb/api/shipping.php
catalog/language/en-gb/checkout/checkout.php
catalog/language/en-gb/total/shipping.php

Also in these language files if you got the following payment methods:

catalog/language/en-gb/extension/payment/pp_braintree.php
catalog/language/en-gb/extension/payment/pp_express.php

Re: Is there a way to change/customize the 'Shipping error warning' - No Shipping options are available. Please contact

Posted: Fri Mar 26, 2021 8:50 pm
by ri2k
JNeuhoff wrote:
Fri Mar 26, 2021 8:24 pm
That would require a change in the following language files:

catalog/language/en-gb/api/order.php
catalog/language/en-gb/api/shipping.php
catalog/language/en-gb/checkout/checkout.php
catalog/language/en-gb/total/shipping.php

Also in these language files if you got the following payment methods:

catalog/language/en-gb/extension/payment/pp_braintree.php
catalog/language/en-gb/extension/payment/pp_express.php

Well, I only use PayPal. Do I still need to change the braintree?

Re: Is there a way to change/customize the 'Shipping error warning' - No Shipping options are available. Please contact

Posted: Fri Mar 26, 2021 8:50 pm
by straightlight
Event languages could also be created rather than altering these files.

Re: Is there a way to change/customize the 'Shipping error warning' - No Shipping options are available. Please contact

Posted: Mon Mar 29, 2021 6:51 pm
by paulfeakins
straightlight wrote:
Fri Mar 26, 2021 8:50 pm
Event languages could also be created rather than altering these files.
Why do you love events so much?

Have you ever worked with Prestashop? Everything is done with events there, and it's not ideal.

Re: [SOLVED] Is there a way to change/customize the 'Shipping error ' - No Shipping options available. Please contact us

Posted: Mon Mar 29, 2021 6:58 pm
by JNeuhoff
Events are better than OCmod/VQmod, and better than directly changing OpenCart core files.

Having said that, personally I prefer object-oriented class extensions with overridden methods where possible as a way to modify OC core logic.

Re: [SOLVED] Is there a way to change/customize the 'Shipping error ' - No Shipping options available. Please contact us

Posted: Mon Mar 29, 2021 8:15 pm
by straightlight
JNeuhoff wrote:
Mon Mar 29, 2021 6:58 pm
Events are better than OCmod/VQmod, and better than directly changing OpenCart core files.

Having said that, personally I prefer object-oriented class extensions with overridden methods where possible as a way to modify OC core logic.
Correct. The Event engine is also part of the core as it should be provided as an e.g to be used rather than criticizing the use of it especially when originated by moderators.