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

Добавление фамилии в инвойс


Recommended Posts

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

 

Подскажите пожалуйси, как вывести в order_invoice.tpl отгдельно фамилию (lastname)

Предполагаю, что нужно прописать вызов фамилии отгдельно в контроллере order.php, но как сгделать не знаю.

Всем заранее спасипотому что за ответы.

Opencart 1.5.6

Edited by Donarium
Link to comment
Share on other sites


3 минуты назад, Donarium сказал:

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

 

Подскажите пожалуйси, как вывести в order_invoice.tpl отгдельно фамилию (lastname)

Предполагаю, что нужно прописать вызов фамилии отгдельно в контроллере order.php, но как сгделать не знаю.

Всем заранее спасипотому что за ответы.

 

все ответы можно найти тут

Link to comment
Share on other sites


4 часа назад, Donarium сказал:

как вывести в order_invoice.tpl отгдельно фамилию (lastname)

 

в admin\controller\sale\order.php

после

'email'              => $order_info['email'],

 

добавить

'lastname'              => $order_info['lastname'],

 

и в шаблоне admin\view\template\sale\order_invoice.tpl

выводить в нужном месте через

<?php echo $order['lastname']; ?>

  • +1 1
Link to comment
Share on other sites

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

 

в admin\controller\sale\order.php

после

'email'              => $order_info['email'],

 

добавить

'lastname'              => $order_info['lastname'],

 

и в шаблоне admin\view\template\sale\order_invoice.tpl

выводить в нужном месте через

<?php echo $order['lastname']; ?>

@AlexDW, спасипотому что за ответ, чуть пораньше бы, а то сгделал уже за гденежку. 

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.