Merge pull request #1351 from KayLeung/patch-1

add trailing space to 'Shipping via'
This commit is contained in:
Mike Jolley 2012-08-07 13:39:57 -07:00
commit f1f9e0e245
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ class WC_Paypal extends WC_Payment_Gateway {
// Shipping Cost item - paypal only allows shipping per item, we want to send shipping for the order
if ($order->get_shipping()>0) :
$item_loop++;
$paypal_args['item_name_'.$item_loop] = __('Shipping via', 'woocommerce') . ucwords($order->shipping_method_title);
$paypal_args['item_name_'.$item_loop] = __('Shipping via', 'woocommerce') . ' ' . ucwords($order->shipping_method_title);
$paypal_args['quantity_'.$item_loop] = '1';
$paypal_args['amount_'.$item_loop] = number_format($order->get_shipping(), 2, '.', '');
endif;