commerce paypal 传递购物车信息和发货地址到paypal 的补丁

参考drupal.org 资源:

https://www.drupal.org/node/1301570

https://www.drupal.org/files/issues/send_itemized_shopping-1301570-116.patch

默认的116.patch购物车中的运费是handling下面,shipping为0,传递的地址不显示,而且是billing而不是shipping地址。

Commerce_paypal_send_itemized_product_info_shipping_address-170918.patch.zip


使用方式:

#cd path/to/commerce_paypal/module/

#对于commerce kickstart 用下面路径

cd profiles/commerce_kickstart/modules/contrib/commerce_paypal/

wget https://thatk.com/sites/default/files/ueditor/1/upload/file/20170918/1505708028.zip

unzip 1505708028.zip

patch -p1 < Commerce_paypal_send_itemized_product_info_shipping_address-170918.patch
运行结果:

patching file modules/wps/commerce_paypal_wps.module

Hunk #3 succeeded at 429 (offset 5 lines).

然后 drush rr, 或者 重启php, 在启用了opcache的服务器环境中需要执行,否则不会立即生效.

image.png