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

В каких файлах нужно прописать изменения чтобы добавить поле для телефона?


Guest Razrab2018
 Share

Recommended Posts

Guest Razrab2018

Использую ocStore 3.0.2.0. В синдартном шаблоне в разгделе "Связаться с нами" для заполнения всего 3 поля ( Ваше имя, Email адрес, Ваше сообещёние). Мне нужно еещё поле для телефона. Соответственно вопрос: В каких файлах нужно прописать изменения, чтобы добавить поле для телефона и,  чтобы данные этого поля приходили в письме  на почту указанную в админке?

Edited by Razrab2018
Link to comment
Share on other sites

Guest Razrab2018
16 часов назад, xCCCCCC сказал:

 

Я добавил поле для телефона (/catalog/view/theme/default/template/information/contact.twig) :

 

 

 

 

 <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-phone">{{ entry_phone }}</label>
            <div class="col-sm-10">
              <input type="text" name="phone" value="{{ phone }}" id="input-phone" class="form-control" />
              {% if error_name %}
              <div class="text-danger">{{ error_phone }}</div>
              {% endif %}
            </div>
   </div>

 

Элементы {{  }} в language/ru-ru/ information/ contact.php

 

 

 

А в файле  /catalog/controller/information/contact.php   , что нужно поменять?

Edited by Razrab2018
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

×
×
  • 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.