仔细追踪,发现是
L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE
L_PAYMENTREQUEST_0_ITEMWEIGHTUNIT'
计算出错,我的测试站没有这个计量,但是出来一个10,由于用不到,所以先注释掉这部分,临时用着,需要的时候再找原因:
vi catalog/model/payment/pp_express.php
-
$data['L_PAYMENTREQUEST_0_NAME' . $i] = $item['name'];
-
$data['L_PAYMENTREQUEST_0_NUMBER' . $i] = $item['model'];
-
$data['L_PAYMENTREQUEST_0_AMT' . $i] = $item_price;
-
$item_total += number_format($item_price * $item['quantity'], 2);
-
$data['L_PAYMENTREQUEST_0_QTY' . $i] = $item['quantity'];
-
-
$data['L_PAYMENTREQUEST_0_ITEMURL' . $i] = $this->url->link('product/product', 'product_id=' . $item['product_id']);
-
-
/* if ($this->config->get('config_cart_weight')) {
-
$weight = $this->weight->convert($item['weight'], $item['weight_class_id'], $this->config->get('config_weight_class_id'));
-
$data['L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE' . $i] = number_format($weight / $item['quantity'], 2);
-
$data['L_PAYMENTREQUEST_0_ITEMWEIGHTUNIT' . $i] = $this->weight->getUnit($this->config->get('config_weight_class_id'));
-
}
-
-
if ($item['length'] > 0 || $item['width'] > 0 || $item['height'] > 0) {
-
$unit = $this->length->getUnit($item['length_class_id']);
-
$data['L_PAYMENTREQUEST_0_ITEMLENGTHVALUE' . $i] = $item['length'];
-
$data['L_PAYMENTREQUEST_0_ITEMLENGTHUNIT' . $i] = $unit;
-
$data['L_PAYMENTREQUEST_0_ITEMWIDTHVALUE' . $i] = $item['width'];
-
$data['L_PAYMENTREQUEST_0_ITEMWIDTHUNIT' . $i] = $unit;
-
$data['L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE' . $i] = $item['height'];
-
$data['L_PAYMENTREQUEST_0_ITEMHEIGHTUNIT' . $i] = $unit;
-
}
-
*/
-
$i++;
paypal The totals of the cart item amounts do not match order amounts.
阅读(2375) | 评论(0) | 转发(0) |