Message no_rates

  • Posts: 128
  • Thank you received: 1
8 years 8 months ago #250726

-- HikaShop version -- : 2.6.4

Hi,

when a country is not covered by our shipping methods an alert message appears above of the check out. It shows: Message
no_rates

Basically that is fine, but no_rates look not good. How can I change or edit the no_rates message into a more suitable massage?

Regards

Thomas

Please Log in or Create an account to join the conversation.

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
8 years 8 months ago #250727

Hi,

There is no message "no_rates" in HikaShop but there is an array containing error messages where the key can be "no_rates".

$errors['no_rates'] = JText::_('NO_SHIPPING_METHOD_FOUND');
So I don't know what is displaying you the error message but it does not read the right part in the array.
Because the "more suitable message" is in the value side of the array.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 128
  • Thank you received: 1
8 years 8 months ago #250762

Hi,

thanks for your reply. See the screen shot about how it looks. The line you showed containing no_rates, is in shipping.php

if(empty($rates)) {
$errors = JText::_('NO_SHIPPING_METHOD_FOUND');
$this->errors = $errors;
return $usable_methods;
}

In en-GB.com_hikashop.ini I can also find the corresponding language file line: NO_SHIPPING_METHOD_FOUND="No method found"

So all seems to be there but it stops at no_rates

Thanks and regards

Thomas

Attachments:
Last edit: 8 years 8 months ago by thomasf.

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
8 years 8 months ago #250785

Hi,

It means that the system couldn't find any shipping methods.
So I invite you to check the different points listed in the FAQ regarding the shipping methods not being found:
www.hikashop.com/support/documentation/106-faq.html#ship

Please Log in or Create an account to join the conversation.

  • Posts: 128
  • Thank you received: 1
8 years 8 months ago #250793

Hi,
Yes that's right and that's ok. Some countries cannot be delivered. My problem is not that a shipping method is not found, but that I can't modify the message through the language file, as it gets stuck at no_rates. S instead of no_rates I want a modified message. But it won't get it from the language file.
Regards

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
8 years 8 months ago #250805

Hello Thomas,

Thank you for your feedback, we'll fix it as soon as possible.

For the moment the best solution for you will be to directly add that line through your translation file :

NO_RATES="No method found"

The following user(s) said Thank You: thomasf

Please Log in or Create an account to join the conversation.

Time to create page: 0.142 seconds
Powered by Kunena Forum