protected function cartUpdates($isNewItem = false, $keepDiscount = false)
    {
        $this->updateTotals($keepDiscount);

        $this->storeCartData($isNewItem);

        return $this->toArray();
    }
protected function cartUpdates($isNewItem = false, $keepDiscount = false)
    {
        $this->updateTotals($keepDiscount);

        $this->storeCartData($isNewItem);

        return $this->toArray();
    }
protected function cartUpdates ( $ isNewItem = false , $ keepDiscount = false ) { $ this -> updateTotals ( $ keepDiscount ) ; $ this -> storeCartData ( $ isNewItem ) ; return $ this -> toArray ( ) ; }
Performs cart updates and returns the data.

@param bool Weather its a new item or existing
@param bool Weather to keep the discount in the cart
@return array
Performs cart updates and returns the data .