Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4249518
  • 博文数量: 601
  • 博客积分: 15410
  • 博客等级: 上将
  • 技术积分: 6884
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-16 08:11
个人简介

独学而无友,则孤陋而寡闻!

文章分类

全部博文(601)

文章存档

2020年(1)

2018年(4)

2017年(7)

2016年(42)

2015年(25)

2014年(15)

2013年(36)

2012年(46)

2011年(117)

2010年(148)

2009年(82)

2008年(37)

2007年(41)

分类: Web开发

2014-06-13 17:59:01

仔细追踪,发现是
L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE
L_PAYMENTREQUEST_0_ITEMWEIGHTUNIT'

计算出错,我的测试站没有这个计量,但是出来一个10,由于用不到,所以先注释掉这部分,临时用着,需要的时候再找原因:

vi catalog/model/payment/pp_express.php

  1. $data['L_PAYMENTREQUEST_0_NAME' . $i] = $item['name'];
  2.                           $data['L_PAYMENTREQUEST_0_NUMBER' . $i] = $item['model'];
  3.                           $data['L_PAYMENTREQUEST_0_AMT' . $i] = $item_price;
  4.                           $item_total += number_format($item_price * $item['quantity'], 2);
  5.                           $data['L_PAYMENTREQUEST_0_QTY' . $i] = $item['quantity'];

  6.                           $data['L_PAYMENTREQUEST_0_ITEMURL' . $i] = $this->url->link('product/product', 'product_id=' . $item['product_id']);

  7.   /* if ($this->config->get('config_cart_weight')) {
  8.                                   $weight = $this->weight->convert($item['weight'], $item['weight_class_id'], $this->config->get('config_weight_class_id'));
  9.                                   $data['L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE' . $i] = number_format($weight / $item['quantity'], 2);
  10.                                   $data['L_PAYMENTREQUEST_0_ITEMWEIGHTUNIT' . $i] = $this->weight->getUnit($this->config->get('config_weight_class_id'));
  11.                           }

  12.                           if ($item['length'] > 0 || $item['width'] > 0 || $item['height'] > 0) {
  13.                                   $unit = $this->length->getUnit($item['length_class_id']);
  14.                                   $data['L_PAYMENTREQUEST_0_ITEMLENGTHVALUE' . $i] = $item['length'];
  15.                                   $data['L_PAYMENTREQUEST_0_ITEMLENGTHUNIT' . $i] = $unit;
  16.                                   $data['L_PAYMENTREQUEST_0_ITEMWIDTHVALUE' . $i] = $item['width'];
  17.                                   $data['L_PAYMENTREQUEST_0_ITEMWIDTHUNIT' . $i] = $unit;
  18.                                   $data['L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE' . $i] = $item['height'];
  19.                                   $data['L_PAYMENTREQUEST_0_ITEMHEIGHTUNIT' . $i] = $unit;
  20.                           }
  21.    */
  22.                           $i++;




paypal The totals of the cart item amounts do not match order amounts.
阅读(2352) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~