Jump to content

Add To Cart Null Quantity Error


Recommended Posts

Hello ,

I have prestashop 1.6.1.1 installed with hotel reservation system installed , i have installed related products free module , when product shows as related i click add credits io get this error : Null Quantity even if quantity is good not 0 ?

 

can u help me please urgent

 

Thanks in advance

 

Regards

Share this post


Link to post
Share on other sites
  • 1 year later...

Hi,

This error is being handled in the CartController.php file  and you have this:

 if ($this->qty == 0) {
            array_push(
                $this->{$ErrorKey},
                $this->trans(
                    'Null quantity.',
                    array(),
                    'Shop.Notifications.Error'
                )
            );
        }

Witch means you are trying  to  add   a product  with  a null  qty  .

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More