-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.xml
24 lines (23 loc) · 974 Bytes
/
install.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>
<modification>
<code>cdek-official</code>
<name>CDEK Shipping Official</name>
<version>dev</version>
<author>CDEK IT</author>
<link>https://www.cdek.ru/ru/integration</link>
<file path="catalog/controller/checkout/simplecheckout_shipping.php">
<operation>
<search>
<![CDATA[private function validator($shippingMethod) {]]>
</search>
<add position="after">
<![CDATA[ $explodedShippingMethod = explode('.', $shippingMethod);
if (($explodedShippingMethod[0] === 'cdek_official') && empty($this->session->data['cdek_office_code']) &&
explode('_', $explodedShippingMethod[1])[0] === 'office') {
$this->load->language('extension/shipping/cdek_official');
return $this->language->get('cdek_pvz_not_found');
}]]>
</add>
</operation>
</file>
</modification>