public function getLimits($item = null)
    {
        $limits = array(
            'sku' => (int) $this->config->get('cart_sku_limit', 10),
            'item' => (int) $this->config->get('cart_item_limit', 20)
        );

        return isset($item) ? $limits[$item] : $limits;
    }
public function getLimits($item = null)
    {
        $limits = array(
            'sku' => (int) $this->config->get('cart_sku_limit', 10),
            'item' => (int) $this->config->get('cart_item_limit', 20)
        );

        return isset($item) ? $limits[$item] : $limits;
    }
public function getLimits ( $ item = null ) { $ limits = array ( 'sku' => ( int ) $ this -> config -> get ( 'cart_sku_limit' , 10 ) , 'item' => ( int ) $ this -> config -> get ( 'cart_item_limit' , 20 ) ) ; return isset ( $ item ) ? $ limits [ $ item ] : $ limits ; }
Returns cart limits
@param null|string $item
@return array|integer
Returns cart limits