如何将变量添加到项目代码点火器价格(php)中的变量之一 我有一个变量:
aTextFrame.contents = SpecialCharacters.autoPageNumber
和购物车会话:
$shipping = 10000;
如何将foreach ($this->cart->contents() as $item){
if($item['discount'] == "0"){
$harga_before = $item['before'];
$harga_after = $item['price'];
}else{
$harga_before = $item['before'];
$harga_after = $item['price'];
}
// result is
$data_order = array(
'id_product' => '1',
'product_name' => 'ferari',
'harga_fix' => '100' + $shipping,
'harga_before' => '150',
),
array(
'id_product' => '2',
'product_name' => 'lamb',
'harga_fix' => '70',
'harga_before' => '85',
);
}
添加到其中一项价格?谢谢