protected function getWidgetCartPreview(array $cart)
    {
        if (empty($cart['items'])) {
            return '';
        }

        $options = array(
            'cart' => $cart,
            'limit' => $this->config('cart_preview_limit', 5)
        );

        return $this->render('cart/preview', $options, true);
    }
protected function getWidgetCartPreview(array $cart)
    {
        if (empty($cart['items'])) {
            return '';
        }

        $options = array(
            'cart' => $cart,
            'limit' => $this->config('cart_preview_limit', 5)
        );

        return $this->render('cart/preview', $options, true);
    }
protected function getWidgetCartPreview ( array $ cart ) { if ( empty ( $ cart [ 'items' ] ) ) { return '' ; } $ options = array ( 'cart' => $ cart , 'limit' => $ this -> config ( 'cart_preview_limit' , 5 ) ) ; return $ this -> render ( 'cart/preview' , $ options , true ) ; }
Returns rendered cart preview
@param array $cart
@return string
Returns rendered cart preview