Smalot\Magento\Cart\CartProduct::add PHP Method

add() public method

Allows you to add one or more products to the shopping cart (quote).
public add ( integer $quoteId, array $productsData, string $storeId = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$productsData array
$storeId string
return Smalot\Magento\ActionInterface
    public function add($quoteId, $productsData, $storeId = null)
    {
        return $this->__createAction('cart_product.add', func_get_args());
    }