/** * Get Shippingcosts as an array (brutto / netto) depending on selected country / payment * * @return array */ public function getShippingCosts() { $country = $this->getSelectedCountry(); $payment = $this->getSelectedPayment(); if(empty($country)||empty($payment)) return array('brutto'=>0, 'netto'=>0); $shippingcosts = $this->admin->sGetShippingcosts($country, $payment['surcharge'], $payment['surchargestring']); return empty($shippingcosts) ? array('brutto'=>0, 'netto'=>0) : $shippingcosts; }