Код: Выделить всё
ALTER TABLE `s_orders` ADD `organization` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `status`;
api/orders.php
в двух местах, ищем
Код: Выделить всё
o.email,
ниже вставим
Код: Выделить всё
o.organization,
далее в /backend/OrderAdmin.php
ищем
Код: Выделить всё
$order->address = $this->request->post('address');
ниже вставим
Код: Выделить всё
$order->organization = $this->request->post('organization');
далее в view/cartview.php ищем (33)
Код: Выделить всё
$order->address = $this->request->post('address');
ниже вставим
Код: Выделить всё
$order->organization = $this->request->post('organization');
ниже ищем(43)
Код: Выделить всё
$this->design->assign('address', $order->address);
ниже вставим
Код: Выделить всё
$this->design->assign('organization', $order->organization);
далее ищем (150)
Код: Выделить всё
$this->design->assign('address', $last_order->address);
ниже добавим
Код: Выделить всё
$this->design->assign('organization', $last_order->organization);
в файле дизайна cart.tpl добавим
Код: Выделить всё
<input class="form_input" name="organization" type="text" value="{$organization|escape}" placeholder="{$lang->form_organization}*"/>
в order.tpl после 172 добавим
Код: Выделить всё
{* юр.лицо*}
{if $order->organization}
<tr>
<td>
<span>{$lang->order_organization}</span>
</td>
<td>{$order->organization|escape}</td>
</tr>
{/if}
далее в email_order.tpl после 90 добавим
Код: Выделить всё
{if $order->organization}
<tr style="border-bottom: 2px solid #41ade2;">
<td style=" width:300px;float: left;;padding: 5px;">
{$lang->email_order_organization}
</td>
<td style=" width:300px;float: left;;padding: 5px;border-left: 1px solid #41ade2;">
{$order->organization|escape}
</td>
</tr>
{/if}
далее в /backend/design/html/email_order_admin.tpl после 97 добавим тоже самое
Код: Выделить всё
{if $order->organization}
<tr style="border-bottom: 2px solid #41ade2;">
<td style=" width:300px;float: left;;padding: 5px;">
{$lang->email_order_organization}
</td>
<td style=" width:300px;float: left;;padding: 5px;border-left: 1px solid #41ade2;">
{$order->organization|escape}
</td>
</tr>
{/if}
далее в /backend/design/html/order.tpl после 140 добавим
Код: Выделить всё
<li>
<label class=property>Юр данные</label>
<div class="edit_order_detail" style='display:none;'>
<input name="organization" class="okay_inp" type="text" value="{$order->organization|escape}" />
</div>
<div class="view_order_detail">
{$order->organization|escape}
</div>
</li>