Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Возникающие вкладки в просмотре заказа (админка)


Recommended Posts

Здравствуйте, пишу модуль оплаты с возможностью выписывать счет в админке при просмотре заказа.

 

подключаюсь через ocmod ик

 

<file path="admin/view/template/sale/order_info.tpl" >
<operation>
<search><![CDATA[<h3 class="panel-title"><i class="fa fa-comment-o"></i> <?php echo $text_history; ?></h3>]]></search>
<add position="before" offset="2"><![CDATA[<div id="pay" style="clear: both;"><?php echo $pay; ?></div>]]></add>
</operation>
</file>

<file path="admin/controller/sale/order.php" >
<operation>
<search><![CDATA[$this->response->setOutput($this->load->view('sale/order_info', $data));]]></search>
<add position="before"><![CDATA[
	$data['pay'] = $this->load->controller('extension/payment/next_privat/order',$order_info['order_id']);
]]></add>
</operation>
</file>

 

и дальше в своем контроллере выдаю данные

всё хорошо, но в блоке истории заказа появляется новая вкладка, которая криво дублирует мой блок выше

image.png.01a3ec2cda22dd418fd001c8c3330b5f.png

 

 

я удаляю согдержимое этого блока через js

$('.tab-pane .next-privat').html('');

но это костыль.

 

Как опотому чтойти эту проблему?

 

Пока модуль написан для опенкарт  2, но сейчас буду адаптировать под опенкарт 3 и думаю бугдет и же проблема

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.