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

Программно изменить печать инструкции по оплате


Recommended Posts

Друзья!

Помогите программно подстроить инструкцию по оплате при выпотому чторе "Банковский перевод"

Вот ик рилииет на данный момент(по умолчанию)

- Клиент выбирает способ оплаты "Банковский перевод." При завершении покупки у покупателя отображается конечная сумма, а внизу ИНСТРУКЦИЯ по оплате(заполняемая в админке вручную).  

При нажатии "Подтвердить заказ" происходит успешное окончание покупки и ему и-же самая инструкция по оплате отправляется на E-mail.

Ггде, в каком .php файле подправить(или удалить), чтобы :

Все происходило точно ик-же, НО НЕ ОТОБРАЖАЛАСЬ инструкция по оплате, а только ОТПРАВЛЯЛАСЬ на E-mail покупателя??

Спасипотому что!

 

Link to comment
Share on other sites


1 час назад, Djeff78 сказал:

/catalog/view/theme/default/template/extension/payment/bank_transfer.tpl

 

Там нету .tpl расширения..... только .twig

Link to comment
Share on other sites


50 минут назад, Djeff78 сказал:

не обратил внимания что версия 3 - зналит .twig

Ну да. А что им ковырять?

Link to comment
Share on other sites


17 минут назад, Djeff78 сказал:

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

style=" display: none; "

Вот полностью файл bank_transfer.twig

Только ггде згдесь корзина.....:((

<h2>{{ text_instruction }}</h2>
<p><b>{{ text_description }}</b></p>
<div class="well well-sm">
  <p>{{ bank }}</p>
  <p>{{ text_payment }}</p>
</div>
<div class="buttons">
  <div class="pull-right">
    <input type="button" value="{{ button_confirm }}" id="button-confirm" data-loading-text="{{ text_loading }}" class="btn btn-primary" />
  </div>
</div>
<script type="text/javascript"><!--
$('#button-confirm').on('click', function() {
    $.ajax({
        url: 'index.php?route=extension/payment/bank_transfer/confirm',
        dataType: 'json',
        beforeSend: function() {
            $('#button-confirm').button('loading');
        },
        complete: function() {
            $('#button-confirm').button('reset');
        },
        success: function(json) {
            if (json['redirect']) {
                location = json['redirect'];    
            }
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
        }
    });
});
//--></script>
 

 

Link to comment
Share on other sites


  • 1 month later...

Удалите все до <div class="buttons">

и обновите кеш твига.

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.