Send shipping name to paypal

This commit is contained in:
Mike Jolley 2012-01-25 21:58:53 +00:00
parent e8ef14ce7d
commit 56d98cb7c5
2 changed files with 2 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class Woocommerce_Paypal extends Woocommerce_Payment_Gateway {
// Shipping Cost
if ($order->get_shipping()>0) :
$paypal_args['item_name_2'] = __('Shipping cost', 'woocommerce');
$paypal_args['item_name_2'] = __('Shipping via ', 'woocommerce') . ucwords($order->shipping_method_title);
$paypal_args['quantity_2'] = '1';
$paypal_args['amount_2'] = number_format($order->get_shipping(), 2, '.', '');
endif;

View File

@ -132,6 +132,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
* Error are now lists instead of divs so we can show multiple errors at once
* Problem: Stock management off, hide out of stock on meant some product were hidden randomly. Solution: Enable instock/outofstock selector on edit product page regardless of settings
* If sending shipping to paypal, send shipping address
* Send shipping name to paypal
= 1.3.2.1 - 15/12/2011 =
* Category/Ordering fix