Skip to main content

error on minimum purchase

More
13 years 1 month ago #118328 by lacasetta
-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 2.5.14
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi, now i noticed a new bug that i had not before.
When i make an order under the minimum amount of purchase i have the message like on the screenshot attached here.
I tried to insert the message on the Language file but it does not work.
It is strange that bug because some days ago it works fine.

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago #118340 by Mohamed Thelji
Hi,

Can you explain us how can we reproduce the problem through your website ? I tried it on my end with a product which have a "Minimum quantity per order" and it seems to be working fine.

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

More
13 years 1 month ago #118371 by lacasetta
Replied by lacasetta on topic error on minimum purchase
Hi,
no, it is not a minimum quantity of product per order.
It is a minimum amount of purchase. On my site you have to buy minimum 15 Euro.
For example if you try to buy a total amount of 12 Euro you'll have the bug.
This one did not happen in the previous version of hikashop.

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago #118405 by nicolas
Replied by nicolas on topic error on minimum purchase
We fixed the messages. You can download the install package on our website and install it on yours and that should display the messages fine now.

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

More
13 years 1 month ago #118429 by lacasetta
Replied by lacasetta on topic error on minimum purchase
I'm sorry :(
I downloaded again the com_hikashop_business_2.2.0_2013-08-11 version, but the bug is not gone away!
:( :( :(

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago #118457 by nicolas
Replied by nicolas on topic error on minimum purchase
You still have the error messages not translated ? Can you give a link to that shop so that we can see that ?

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

More
13 years 1 month ago #118479 by lacasetta
Replied by lacasetta on topic error on minimum purchase
Yes, i still have the same messages like on the screenshot.
The site is
www.lacasettabio.it

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago #118533 by Xavier
Replied by Xavier on topic error on minimum purchase
Hi,

Have you translated these strings in the override part of the language manager ?
If it is, you have probably an error, maybe a missing double quote, or equal symbol.

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

More
13 years 1 month ago - 13 years 1 month ago #118559 by lacasetta
Replied by lacasetta on topic error on minimum purchase
Hi,
yes, i cecked them. All of they are correct. It does not work! :(
But why are they repeted a lot of time?

my site with Hikashop
www.lacasettabio.it
Last edit: 13 years 1 month ago by lacasetta.

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

More
13 years 1 month ago #118590 by nicolas
Replied by nicolas on topic error on minimum purchase
Hi,

I don't see them repeated like that on your website.

Did you download the latest version of your translation file via the Languages tab of the configuration ?
From what I can see you're missing the translation in the italian language file.

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

More
13 years 1 month ago #118625 by lacasetta
Replied by lacasetta on topic error on minimum purchase

nicolas wrote: Hi,

I don't see them repeated like that on your website.

if you try to buy one of this product you'll see the error messages repeated: www.lacasettabio.it/en/negozio-online/fa...wheat-flour-for-sale

nicolas wrote: Hi,

From what I can see you're missing the translation in the italian language file.

There are the error messages not traslated even if you use english Language
I sent you a copy of my english file by "share" button on joomla backend

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago - 13 years 1 month ago #118627 by lacasetta
Replied by lacasetta on topic error on minimum purchase
P.S.
I dowloaded and installed the latest version of Hikashop business again. Never is changed about the issue.
Now, I noticed that if you use United States of America on your adress you have just 3 error messages but if you use Italy you have a lot of messages like on my previous screenshot.

my site with Hikashop
www.lacasettabio.it
Last edit: 13 years 1 month ago by lacasetta.

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

More
13 years 1 month ago #118653 by Xavier
Replied by Xavier on topic error on minimum purchase
Hi,

Thanks to check the file "administrator/components/com_hikashop/classes/shipping.php", function "_displayErrors()".
thanks to try to use the code:
Code:
if($trans!=$value){ $value = $trans; } $app = JFactory::getApplication(); $app->enqueueMessage($value);
Instead of the existing one at the end of the function.

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

More
13 years 1 month ago #118680 by Xavier
Replied by Xavier on topic error on minimum purchase
We made some changes regarding this problem,
Can you edit the "YOUR_WEBSITE\administrator\components\com_hikashop\classes\shipping.php" file and change these lines :
Code:
$trans = JText::_(strtoupper(str_replace(' ','_',$value))); if(strpos($trans,'%s')!==false){ $trans = JText::sprintf(strtoupper(str_replace(' ','_',$value)),$number); } if($trans!=$value){ $trans = $value; } $app = JFactory::getApplication(); $app->enqueueMessage($trans);
By :
Code:
$transKey = strtoupper(str_replace(' ','_',$value)); $trans = JText::_($transKey); if(strpos($trans,'%s')!==false){ $trans = JText::sprintf($transKey,$number); } if($trans != $transKey){ $value = $trans; } $app = JFactory::getApplication(); $app->enqueueMessage($value);

Thanks :).

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

More
13 years 1 month ago #118688 by lacasetta
Replied by lacasetta on topic error on minimum purchase
Yes,
now the translation works! ;)
BUT ... :( :( :(
I have 16 error messages !!!!
I think it is too much :blink:
Before the last update of Hikashop i had just one! :whistle:

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago #118689 by Mohamed Thelji
And can you show me what are the error messages that you are getting ?

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

More
13 years 1 month ago #118694 by lacasetta
Replied by lacasetta on topic error on minimum purchase
Here you are:
The total of your order is too low for all the possible shipping methods
The total of your order is too low for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The total of your order is too low for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The total of your order is too low for all the possible shipping methods
The cart items combined weight is too big for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
No shipping method found

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago #118697 by lacasetta
Replied by lacasetta on topic error on minimum purchase
I think it is correct just the first one.
I mean only the first one! ;)

my site with Hikashop
www.lacasettabio.it

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

More
13 years 1 month ago #118745 by nicolas
Replied by nicolas on topic error on minimum purchase
Add the code:
Code:
static $translatedDisplayed = array(); if(isset($translatedDisplayed[$value])) return; $translatedDisplayed[$value] = true;
before the code:
Code:
$app = JFactory::getApplication(); $app->enqueueMessage($value);
in the file administrator/components/com_hikashop/classes/shipping.php and that should avoid duplicate error messages.

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

More
13 years 1 month ago - 13 years 1 month ago #118789 by lacasetta
Replied by lacasetta on topic error on minimum purchase
Now it is a little bit better but not perfect.

I have:
The total of your order is too low for all the possible shipping methods
The cart items combined weight is too small for all the possible shipping methods
The cart items combined weight is too big for all the possible shipping methods
No shipping method found

The customer that received these 4 messages could be confused.
He only made one mistake: he does not reached the minimum amount of order.

my site with Hikashop
www.lacasettabio.it
Last edit: 13 years 1 month ago by lacasetta.

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

Time to create page: 0.328 seconds
Powered by Kunena Forum