Post by ri2k » Fri Mar 26, 2021 8:13 pm

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?
Last edited by ri2k on Sat Mar 27, 2021 11:59 am, edited 1 time in total.

New member

Posts

Joined
Mon Aug 24, 2020 7:31 pm

Post by JNeuhoff » 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

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by ri2k » Fri Mar 26, 2021 8:50 pm

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?

New member

Posts

Joined
Mon Aug 24, 2020 7:31 pm

Post by straightlight » Fri Mar 26, 2021 8:50 pm

Event languages could also be created rather than altering these files.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Mon Mar 29, 2021 6:51 pm

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.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by JNeuhoff » 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.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by straightlight » Mon Mar 29, 2021 8:15 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 43 guests