需要帮助!
在prestashop中,我想从total_to_pay
计算出10%的值
任何人都可以帮我添加吗?
$this->smarty->assign(array(
'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false),
'chequeName' => $this->chequeName,
'chequeAddress' => Tools::nl2br($this->address),
'status' => 'ok',
'id_order' => $params['objOrder']->id
));
答案 0 :(得分:0)
像这样的10%
'total_to_pay' => Tools::displayPrice($stats_sales['sales'] * 10 / 100, $params['currencyObj'], false)