Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Prestashop-需要在payment.html文件中添加额外变量_Php_Prestashop - Fatal编程技术网

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')
        );