public function validateAddToCart()
    {
        $this->setSubmitted('user_id', $this->getCartUid());
        $this->setSubmitted('store_id', $this->getStoreId());
        $this->setSubmitted('quantity', $this->getSubmitted('quantity', 1));

        $this->validateComponent('cart');
    }
public function validateAddToCart()
    {
        $this->setSubmitted('user_id', $this->getCartUid());
        $this->setSubmitted('store_id', $this->getStoreId());
        $this->setSubmitted('quantity', $this->getSubmitted('quantity', 1));

        $this->validateComponent('cart');
    }
public function validateAddToCart ( ) { $ this -> setSubmitted ( 'user_id' , $ this -> getCartUid ( ) ) ; $ this -> setSubmitted ( 'store_id' , $ this -> getStoreId ( ) ) ; $ this -> setSubmitted ( 'quantity' , $ this -> getSubmitted ( 'quantity' , 1 ) ) ; $ this -> validateComponent ( 'cart' ) ; }
Validates adding a product to cart
Validates adding a product to cart