Php Prestashop-需要在payment.html文件中添加额外变量
我试图在Php Prestashop-需要在payment.html文件中添加额外变量,php,prestashop,Php,Prestashop,我试图在payment.html文件中添加变量,但无法确定变量是从哪个文件传递来的 当前有一些变量正在传递:total_paid,我似乎无法确定这个变量是从哪个文件传递过来的 任何帮助都将不胜感激。设法解决了这个问题 它位于orderHistory文件class/order/orderHistory.php中 选中函数addWithemail并向$data数组添加新字段: 例如: $data = array( '{lastname}' => $res
payment.html
文件中添加变量,但无法确定变量是从哪个文件传递来的
当前有一些变量正在传递:total_paid
,我似乎无法确定这个变量是从哪个文件传递过来的
任何帮助都将不胜感激。设法解决了这个问题 它位于orderHistory文件class/order/orderHistory.php中 选中函数addWithemail并向$data数组添加新字段: 例如:
$data = array(
'{lastname}' => $result['lastname'],
'{firstname}' => $result['firstname'],
'{id_order}' => (int)$this->id_order,
'{order_name}' => $order->getUniqReference(),
'{order_receipt}' => 'R'.sprintf('%06d', $order->id),
'{order_invoice}' => 'W'.sprintf('%06d', $order->id),
'{order_date}' => date('d/m/Y')
);