OpenCart 🇺🇦

Схема

public mixed index ( )

Аргументы

Аргумент Возможный тип Описание
У метода нет аргументов

Описание

Метод пока еще не документирован.

Исходный код

$this->language->load('checkout/checkout');

$this->data['text_address_existing'] = $this->language->get('text_address_existing');
$this->data['text_address_new'] = $this->language->get('text_address_new');
$this->data['text_select'] = $this->language->get('text_select');
$this->data['text_none'] = $this->language->get('text_none');

$this->data['entry_firstname'] = $this->language->get('entry_firstname');
$this->data['entry_lastname'] = $this->language->get('entry_lastname');
$this->data['entry_company'] = $this->language->get('entry_company');
$this->data['entry_address_1'] = $this->language->get('entry_address_1');
$this->data['entry_address_2'] = $this->language->get('entry_address_2');
$this->data['entry_postcode'] = $this->language->get('entry_postcode');
$this->data['entry_city'] = $this->language->get('entry_city');
$this->data['entry_country'] = $this->language->get('entry_country');
$this->data['entry_zone'] = $this->language->get('entry_zone');

$this->data['button_continue'] = $this->language->get('button_continue');
	
if (isset($this->session->data['shipping_address_id'])) {
	$this->data['address_id'] = $this->session->data['shipping_address_id'];
} else {
	$this->data['address_id'] = $this->customer->getAddressId();
}

$this->load->model('account/address');

$this->data['addresses'] = $this->model_account_address->getAddresses();

if (isset($this->session->data['shipping_postcode'])) {
	$this->data['postcode'] = $this->session->data['shipping_postcode'];		
} else {
	$this->data['postcode'] = '';
}
		
if (isset($this->session->data['shipping_country_id'])) {
	$this->data['country_id'] = $this->session->data['shipping_country_id'];		
} else {
	$this->data['country_id'] = $this->config->get('config_country_id');
}
		
if (isset($this->session->data['shipping_zone_id'])) {
	$this->data['zone_id'] = $this->session->data['shipping_zone_id'];		
} else {
	$this->data['zone_id'] = '';
}
				
$this->load->model('localisation/country');

$this->data['countries'] = $this->model_localisation_country->getCountries();

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/shipping_address.tpl')) {
	$this->template = $this->config->get('config_template') . '/template/checkout/shipping_address.tpl';
} else {
	$this->template = 'default/template/checkout/shipping_address.tpl';
}
		
$this->response->setOutput($this->render());