mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-19 05:45:20 +00:00
support free products
This commit is contained in:
@@ -294,7 +294,7 @@ class Cart {
|
||||
*/
|
||||
protected function addRow($id, $name, $qty, $price, Array $options = array())
|
||||
{
|
||||
if(empty($id) || empty($name) || empty($qty) || empty($price))
|
||||
if(empty($id) || empty($name) || empty($qty) || ! isset($price))
|
||||
{
|
||||
throw new Exceptions\ShoppingcartInvalidItemException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user