Page 1 of 1

Weight Based Shipping: Show Text when no rate

Posted: Mon May 11, 2020 12:20 am
by wafflemeister
I would like to modify the attached default weight based shipping module to show a custom text as long as the customer has not selected a state. This way rather than not showing any rate at all, the customer sees a text asking the customer to select a state so that a rate shows up. I have already defined the custom text in the language file by adding:

Code: Select all

$_['text_enter_state'] = 'Please select state to view shipping rate.'; 
Thank you in advance!

Re: Weight Based Shipping: Show Text when no rate

Posted: Mon May 11, 2020 10:45 pm
by Johnathan
You should be able to just modify the "no shipping options" error message to say what you want, rather than editing other core OpenCart files. That message can be changed in /catalog/language/YOURLANGUAGE/checkout/checkout.php