protected function _delivery_info($prices) { if (isset($prices[0])) { $shop = new shop($prices[0]->shop_id); $this->assign('delivery_info', $shop->delivery_info($this->_getRegionCountry())); } }