I’m getting this message while adding a product to the cart. “* Item qty declaration error.“ any ideas how to fix that ? Thanks. error qty

  • update your code for adding product to cart. Dec 24 '14 at 8:18
  • i use default code. i see error display in cart page(checkout/cart). Can you explain error, i don't know what happen with error, why it occur. Thanks
    – Init
    Dec 24 '14 at 8:34
  • update full error message... Dec 24 '14 at 8:40
  • i upload picture for error
    – Init
    Dec 24 '14 at 9:38
  • its looks like js error.not PHP..confirm it. Dec 24 '14 at 10:32

This error happens during the function checkData on a quote item.

    try {
    } catch (Mage_Core_Exception $e){
    } catch (Exception $e){
        $this->setMessage(Mage::helper('sales')->__('Item qty declaration error.'));

It happens when a generic Exception is caught. I would suggest that you need to dig deeper into the exception to find out the problem. Make sure you have logging and developer mode set-up and you could even update the code to simply Mage::log($e->getMessage()) to see what is going on with the error. Another great tool for debugging this would be xdebug.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.