Untitled
unknown
plain_text
2 years ago
3.4 kB
10
Indexable
<file path="catalog/controller/api/order.php">
<operation>
<search>
<![CDATA[ $this->model_checkout_order->addOrderHistory($json['order_id'], $order_status_id); ]]>
</search>
<add position="replace">
<![CDATA[
$comment = '';
$notify = '';
$this->model_checkout_order->addOrderHistory($json['order_id'], $order_status_id, $comment, $notify);
]]>
</add>
</operation>
<operation>
<search>
<![CDATA[ $this->model_checkout_order->addOrderHistory($json['order_id'], $order_status_id, $comment, $notify); ]]>
</search>
<add position="before">
<![CDATA[
if (strpos($order_data['payment_code'], 'sbacquiring') !== false && !$this->config->get($order_data['payment_code'].'_adminlink')){
if ($this->config->get($order_data['payment_code'].'_on_status_id') == $order_status_id){
$this->load->model('checkout/order');
$order_info = $this->model_checkout_order->getOrder($json['order_id']);
$this->language->load('extension/payment/sbacquiringpro');
$this->language->load('extension/payment/'.$order_info['payment_code']);
$this->load->model('extension/payment/sbacquiring');
$merchant_url = $this->model_extension_payment_sbacquiring->getCustomFields($order_info, 'href');
if ($comment){
$comment .= "<br>";
}
$comment .= sprintf($this->language->get('text_adminlink'), $merchant_url);
$notify = true;
}
}
]]>
</add>
</operation>
<operation>
<search>
<![CDATA[ $this->model_checkout_order->addOrderHistory($order_id, $order_status_id); ]]>
</search>
<add position="replace">
<![CDATA[
$comment = '';
$notify = '';
$this->model_checkout_order->addOrderHistory($order_id, $order_status_id, $comment, $notify);
]]>
</add>
</operation>
<operation>
<search>
<![CDATA[ $this->model_checkout_order->addOrderHistory($order_id, $order_status_id, $comment, $notify); ]]>
</search>
<add position="before">
<![CDATA[
if (strpos($order_data['payment_code'], 'sbacquiring') !== false && !$this->config->get($order_data['payment_code'].'_adminlink')){
if ($this->config->get($order_data['payment_code'].'_on_status_id') == $order_status_id){
$this->load->model('checkout/order');
$order_info = $this->model_checkout_order->getOrder($order_id);
$this->language->load('extension/payment/sbacquiringpro');
$this->language->load('extension/payment/'.$order_info['payment_code']);
$this->load->model('extension/payment/sbacquiring');
$merchant_url = $this->model_extension_payment_sbacquiring->getCustomFields($order_info, 'href');
if ($comment){
$comment .= "<br>";
}
$comment .= sprintf($this->language->get('text_adminlink'), $merchant_url);
$notify = true;
}
}
]]>
</add>
</operation>
</file>Editor is loading...
Leave a Comment