error on minimum purchase

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118328

-- 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
Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #118340

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118371

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #118405

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118429

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #118457

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118479

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #118533

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118559

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: 11 years 3 months ago by lacasetta.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #118590

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118625

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118627

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: 11 years 3 months ago by lacasetta.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #118653

Hi,

Thanks to check the file "administrator/components/com_hikashop/classes/shipping.php", function "_displayErrors()".
thanks to try to use the 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.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #118680

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 :

$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 :
$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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118688

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #118689

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118694

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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118697

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #118745

Add the code:

static $translatedDisplayed = array();
		if(isset($translatedDisplayed[$value])) return;
		$translatedDisplayed[$value] = true;
before the 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.

  • Posts: 719
  • Thank you received: 3
11 years 3 months ago #118789

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: 11 years 3 months ago by lacasetta.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum