URGENT! Limt reached - you can't add the product

  • Posts: 209
  • Thank you received: 18
13 years 3 months ago #23634

Hi, just upgraded to 1.5.3 and now none of my products can be added to the cart.

Error message says

"Limit reached. You can't add the product."

Have looked through my products and have not set any limits on them.....

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23635

Please turn on the debug mode of joomla in configuration of Joomla and try again. Then, if you get an error message report it to us so that we can give you more instructions.

The following user(s) said Thank You: bagsonjpxssjjz, Promostils

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

  • Posts: 209
  • Thank you received: 18
13 years 3 months ago #23636

Hi Nicolas, made no difference.

I think it's because my products have options and each option has a yes / no variant. The "No" variant is set to quantity "0" so that it can't be selected or added to the cart as free.

What can I do?

Last edit: 13 years 3 months ago by JIK.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23637

Could you give a link to your website so that we can have a look ?

Did you personalize views ?
I don't think that it comes from options.

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

  • Posts: 209
  • Thank you received: 18
13 years 3 months ago #23638

In the link page, if you select the date and leave the options as "no", then you can't add the product and get the error. If you select "Yes" to each of the product options then you can add the product.... :(

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23639

I looked at your website and I can add the product to the cart. It's just that it displays the error message because the option cannot be added since the quantity is 0. So it's actually normal and working as it should.

You can change the error message by editing the translation if you want:
www.hikashop.com/download/languages.html#modify

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

  • Posts: 209
  • Thank you received: 18
13 years 3 months ago #23640

Thanks Nicolas, I changed the message but it's not great...

Is there anyway to stop the message appearing? It appears for every option item where a "no" is selected.

Last edit: 13 years 3 months ago by JIK.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23643

If you set a quantity in your options, the message won't appear.
If you still want to have no quantity but that you don't want to have the message, I'm afraid that the only solution is to modify the code in the file administrator/components/com_hikashop/classes/cart.php and remove the lines:

$app =& JFactory::getApplication();
if( $quantity == 0 ) {
$app->enqueueMessage( JText::sprintf( 'LIMIT_REACHED_REMOVED', $product->product_name));
} else {
$app->enqueueMessage( JText::sprintf( 'LIMIT_REACHED', $product->product_name));
}

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

  • Posts: 209
  • Thank you received: 18
13 years 3 months ago #23644

If I don't set the quanity of the "no" option to "0" then the option gets added to the cart as "free"...

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

  • Posts: 209
  • Thank you received: 18
13 years 3 months ago #23645

Thanks Nicolas, removing that code got me back on track. But I think this may be a minor bug in 1.5.3 - in an otherwise superb product!

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23647

It's not a bug.
Before, there was no error message when a product was added to the cart but that it couldn't be added because there was no stock.
Now there is an error message so that the user understand why his product is not in the cart.
So it's actually an improvement in that respect.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum