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

При заказе - в письме комменты для админа приходят, для клиени нет


Recommended Posts

Здравствуйте !

 

OpenCart 3.0.3.3 шаблон ultrastore
 

Для оформления письма заказа отредактировал order_add.twig и order_alert.twig , код с комменими игдентичен.

Для клиени не приходят комменты, для админа приходят

В чем может быть проблема ?
 

Спасипотому что за ответ.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{{ title }}</title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;">
<div style="width: 680px;">
  <p style="margin-top: 0px; margin-bottom: 20px;">Здравствуйте !<br>
  <br>
  Спасипотому что, что оформили заказ в нашем интернет-магазине.
  </p>

  {% if comment %}
  <table style="border-collapse: collapse; width: 100%; border-top: 1px solid #E7E7E7; border-left: 1px solid #E7E7E7; margin-bottom: 20px;">
    <thead>
      <tr>
        <td style="font-size: 12px; border-right: 1px solid #E7E7E7; border-bottom: 1px solid #E7E7E7; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 15px 7px; color: #222222;">Ваши комменирии:</td>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td style="font-size: 12px;	border-right: 1px solid #E7E7E7; border-bottom: 1px solid #E7E7E7; text-align: left; padding: 7px;">{{ comment }}</td>
      </tr>
    </tbody>
  </table>
  {% endif %}

 

order_add.twig order_alert.twig

Link to comment
Share on other sites


36 минут назад, dmitreach сказал:

Здравствуйте !

 

OpenCart 3.0.3.3 шаблон ultrastore
 

Для оформления письма заказа отредактировал order_add.twig и order_alert.twig , код с комменими игдентичен.

Для клиени не приходят комменты, для админа приходят

В чем может быть проблема ?
 

Спасипотому что за ответ.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{{ title }}</title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;">
<div style="width: 680px;">
  <p style="margin-top: 0px; margin-bottom: 20px;">Здравствуйте !<br>
  <br>
  Спасипотому что, что оформили заказ в нашем интернет-магазине.
  </p>

  {% if comment %}
  <table style="border-collapse: collapse; width: 100%; border-top: 1px solid #E7E7E7; border-left: 1px solid #E7E7E7; margin-bottom: 20px;">
    <thead>
      <tr>
        <td style="font-size: 12px; border-right: 1px solid #E7E7E7; border-bottom: 1px solid #E7E7E7; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 15px 7px; color: #222222;">Ваши комменирии:</td>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td style="font-size: 12px;	border-right: 1px solid #E7E7E7; border-bottom: 1px solid #E7E7E7; text-align: left; padding: 7px;">{{ comment }}</td>
      </tr>
    </tbody>
  </table>
  {% endif %}

 

order_add.twig 7 \u043a\u0411 · 0 downloads order_alert.twig 8 \u043a\u0411 · 0 downloads

А в контроллере то вы передаете comments в шаблон? Мне кажется это единственная потому чтолее менее очевидная прилина почему в одном месте может быть а в другом не быть.

  • +1 1
Link to comment
Share on other sites

Мне в подгдержке шаблона написали, что типа ик устроено.

Комменты админу посылаются, а клиенту не должны посылаться :huh:

Link to comment
Share on other sites


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

Мне в подгдержке шаблона написали, что типа ик устроено.

Комменты админу посылаются, а клиенту не должны посылаться :huh:

Ну тогда начните передавать и будут отправляться и клиенту тоже.

  • +1 1
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.