mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Update Cart.php
Changed default value of $weight to 0
This commit is contained in:
@@ -110,7 +110,7 @@ class Cart
|
|||||||
*
|
*
|
||||||
* @return \Gloudemans\Shoppingcart\CartItem
|
* @return \Gloudemans\Shoppingcart\CartItem
|
||||||
*/
|
*/
|
||||||
public function add($id, $name = null, $qty = null, $price = null, $weight = null, array $options = [])
|
public function add($id, $name = null, $qty = null, $price = null, $weight = 0, array $options = [])
|
||||||
{
|
{
|
||||||
if ($this->isMulti($id)) {
|
if ($this->isMulti($id)) {
|
||||||
return array_map(function ($item) {
|
return array_map(function ($item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user