support free products

This commit is contained in:
Jack McDade
2014-03-19 09:55:51 -04:00
parent c9fecbeadb
commit d3f73e54da

View File

@@ -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;
}