- Posts: 209
- Thank you received: 18
URGENT! Limt reached - you can't add the product
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.
Please Log in or Create an account to join the conversation.
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?
Please Log in or Create an account to join the conversation.
Did you personalize views ?
I don't think that it comes from options.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
Is there anyway to stop the message appearing? It appears for every option item where a "no" is selected.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.