Skip to content

Commit

Permalink
fix(view): corrige falha na exibiçao dos detalhes de pagamento
Browse files Browse the repository at this point in the history
Na pagina de detalhes do pedido, os detalhes do pagamento nao era exibido. O OpenCart, na versao
3.3.6, ha um bug que nao renderiza as modificaçoes em template via OCMOD

fixes #38
  • Loading branch information
valdeir2000 committed Oct 17, 2020
1 parent 2ef35bc commit cf61a38
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,25 @@
</add>
</operation>
</file>

<file path="system/library/template/twig.php">
<operation>
<search>
<![CDATA[$file = DIR_TEMPLATE . $filename . '.twig';]]>
</search>
<add position="after">
<![CDATA[
$file_ocmod = DIR_MODIFICATION . $filename . '.twig';
$application_folder = basename(DIR_APPLICATION);
$folder_ocmod_template = str_replace(DIR_APPLICATION, $application_folder . '/', DIR_TEMPLATE);
$file_ocmod = DIR_MODIFICATION . $folder_ocmod_template . $filename . '.twig';
if (is_file($file_ocmod)) {
$file = $file_ocmod;
}
]]>
</add>
</operation>
</file>
</modification>
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/payment/pagseguro.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,8 @@ public function install()

$this->load->model('setting/event');

$this->model_setting_event->addEvent('pagseguro', 'admin/view/sale/order_info/before', 'extension/payment/pagseguro/manager_order');
$this->model_setting_event->addEvent('pagseguro', 'catalog/view/account/order_info/before', 'extension/payment/pagseguro/boleto2');
$this->model_setting_event->addEvent('pagseguro', 'admin/view/sale/order_info/after', 'extension/payment/pagseguro/manager_order');
$this->model_setting_event->addEvent('pagseguro', 'catalog/view/account/order_info/after', 'extension/payment/pagseguro/boleto2');

if (!is_dir(self::PAGSEGURO_LOG)) {
mkdir(self::PAGSEGURO_LOG, 0777, true);
Expand Down

0 comments on commit cf61a38

Please sign in to comment.