【发布时间】:2017-02-17 14:44:21
【问题描述】:
当我在后台并尝试添加订单并搜索我的客户时,我想在小框中显示客户的地址。 AddOrder-Search for Customer screenshot
在 /themes/default/template/controllers/orders/form.tpl 我有:
function searchCustomers()
{
..........................
html += '<div class="panel-heading">'+this.company+' '+this.firstname+' '+this.lastname;
html += '<span class="pull-right">#'+this.id_customer+'</span></div>';
html += '<span>'+this.email+'</span><br/>';
html += '<span>'+this.addresses+'</span><br/>';
但这只是显示为“未定义” 所以我想我需要在控制器/管理员/AdminCustomersController.php(searchCustomers)中添加一些东西,但我不确定。
谁能告诉我我缺少什么代码?
我正在使用 Prestashop 1.6.1.7
【问题讨论】:
标签: php prestashop customization