ecshop 更新购物车商品市场价格

2016-07-07 15:01 来源:www.chinab4c.com 作者:ecshop专家

$goods_price = $goods_price*goodds(); //-----------------------------------------=======================>>add 更新已存入cart表goods_price信息
$sql = "UPDATE " . $GLOBALS['ecs']->table('cart') . " SET goods_number = '$num'" .
" , goods_price = '$goods_price'".
" WHERE session_id = '" .SESS_ID. "' AND goods_id = '$goods_id' ".
" AND parent_id = 0 AND goods_attr = '" .get_goods_attr_info($spec). "' " .
" AND extension_code <> 'package_buy' " .
"AND rec_type = 'CART_GENERAL_GOODS'";
$GLOBALS['db']->query($sql);

没有更新市场售价也就是 market_price字段的信息没有更新......说明一下我是做货币转换的...所以更新时也 将 market_price乘一个汇率....但是这里找不到
$goods_price = $goods_price*goodds表示更新 goodds()表示汇率...

回答:
那很简单啊。你直接做个换算啊。和其他价格一样换算

恩,就这样。。