array ( 'type' => 'sku', ), 2 => array ( 'type' => 'description', 'show_meta' => 1, ), 3 => array ( 'type' => 'quantity', ), ); break; case 'totals': $settings = array(); break; } } else { switch ($settings_name) { case 'columns': $settings = array ( 1 => array ( 'type' => 'sku', ), 2 => array ( 'type' => 'description', 'show_meta' => 1, ), 3 => array ( 'type' => 'quantity', ), 4 => array ( 'type' => 'price', 'price_type' => 'single', 'tax' => 'excl', 'discount' => 'before', ), 5 => array ( 'type' => 'tax_rate', ), 6 => array ( 'type' => 'price', 'price_type' => 'total', 'tax' => 'excl', 'discount' => 'before', ), ); break; case 'totals': $settings = array( 1 => array ( 'type' => 'subtotal', 'tax' => 'excl', 'discount' => 'before', ), 2 => array ( 'type' => 'discount', 'tax' => 'excl', ), 3 => array ( 'type' => 'shipping', 'tax' => 'excl', ), 4 => array ( 'type' => 'fees', 'tax' => 'excl', ), 5 => array ( 'type' => 'vat', ), 6 => array ( 'type' => 'total', 'tax' => 'incl', ), ); break; } } return $settings; }