Error in text when minimum order value not reached

  • Posts: 299
  • Thank you received: 2
11 years 2 months ago #119948

-- url of the page with the problem -- : www.fly-tiers.se/index.php/webbshop
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : Chrome 28.0.1500.95 m
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi,
I have set up a minimum order value in my shop so when an order is under USD 50 no checkout shall be possible.
This work but the message text displays in a wrong way like this:
"ORDER_TOTAL_TOO_LOW_FOR_SHIPPING_METHODS
Leveransen makuleras."
First line should display this text:
"Din orders totalsumma understiger minsta ordervärde, USD 50.00. Ordern kan inte skickas."

I have set this up in the Language override field under: HikaShop =>Global settings=>Language=>Swedish
ORDER_TOTAL_TOO_LOW_FOR_SHIPPING_METHODS="Din orders totalsumma understiger minsta ordervärde, USD 50.00. Ordern kan inte skickas."
Why doesn't it display in front end at the checkout?
Please any help is highly appreciated.

Regards
Micke

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

  • Posts: 2334
  • Thank you received: 403
11 years 2 months ago #119972

Hi Micke,

Did you added the translation at the end of the file? Because if it's at the beginning it may be overrided.
Also, do you use different languages on your site? it may cause the problem.
Finally, did you edited any view in your Hikashop? If so, you should try to remove the customization so you'll be sure the problem doesn't come from what you did.

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

  • Posts: 299
  • Thank you received: 2
11 years 2 months ago #120037

Eliot wrote: Hi Micke,

Did you added the translation at the end of the file? Because if it's at the beginning it may be overrided.
Also, do you use different languages on your site? it may cause the problem.
Finally, did you edited any view in your Hikashop? If so, you should try to remove the customization so you'll be sure the problem doesn't come from what you did.


Hi Eliot,
Yes I added the translation at the end of the file. Strange thing is that I have already set up a lot of overrides already and they work perfect. I actually have exactly the same problem with exactly the same textstring on another site of mine that I use HikaShop on as well. But it is only this specific line that causes these problems. Maybe a dirty solution would be to link to a graphic image that I make in Photoshop instead... Still strange though.
So if any one at the crew knows what's wrong it would be great.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #120092

Hi,
I think that you'll find the solution through this thread :

Can you replace your "YOUR_WEBSITE\administrator\components\com_hikashop\classes\shipping.php" file by the following file

Last edit: 11 years 2 months ago by Mohamed Thelji.
The following user(s) said Thank You: cantueso

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

  • Posts: 299
  • Thank you received: 2
11 years 2 months ago #120142

Hi,
That did the trick for everything except the last line on the english language.
;checkout - shipping
ORDER_TOTAL_TOO_LOW_FOR_SHIPPING_METHODS="The total order value does not reach the minimum order value of USD 50.00."
NO_SHIPPING_TO_YOUR_ZONE="Please add more products or cancel the order"

How can I solve that?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #120184

Are you still getting an error message ?

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

  • Posts: 299
  • Thank you received: 2
11 years 2 months ago #120194

Mohamed Thelji wrote: Are you still getting an error message ?


Hi,
I sorted it out!
Or should I say I re-replaced the file and then went into the language override settings in HikaShop and found out that the translations string on the english side was wrong it was set up as "NO_SHIPPING_TO_YOUR_ZONE" when the correct one should be "NO_SHIPPING_METHOD_FOUND".
So it was partly my bad not seeing the mis match between the two text constants...

Thanks.

Last edit: 11 years 2 months ago by LAMF.

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

  • Posts: 12
  • Thank you received: 1
11 years 1 month ago #123974

This solution worked for me as well but I have another problem

I have a multilingual shop with 2 languages. After replacing shipping.php with the new file the checkout shows 2 different languages in stead of one. First the Spanish one, then the english one. Also, the english phrase is not the one I overrided, but the phrase from the original english language file.

So I have:
El total de su compra es insuficiente para todas las formas de envío disponibles (spanish from override)
The cart items combined weight is too small for all the possible shipping methods (english from original)
Forma de envío no disponible

Maybe this problem is not related to the shipping.php file, because before changing the file I saw multiple entries for:

ORDER_TOTAL_TOO_LOW_FOR_SHIPPING_METHODS
ORDER_TOTAL_TOO_LOW_FOR_SHIPPING_METHODS
ORDER_TOTAL_TOO_LOW_FOR_SHIPPING_METHODS

Thanks for looking into this!
MF

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 1 month ago #124020

Hi,

Please download the latest package of HikaShop 2.2.1, this issue of "multiple error" has been fixed.

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.

Time to create page: 0.101 seconds
Powered by Kunena Forum