php - woocommerce ups shipping method -


so first i'll plugin works fine, returns correct rates , perfectly. attempting send paypal custom attribute displays ups service selected (ground, 2nd day air, 3rd day, etc).

i know custom attribute reaching paypal correctly because tested code follows:

 $paypal_args = array(                     'custom' => "this shipping"                      ); 

and creates "custom" field , displays text on paypal dashboard when i'm looking @ order details.

i've tried following no success:

  'custom' => $order -> method_title,   &   'custom' =>$order -> shipping_method_title, 

i feel it's should this: $order -> (whatever variable i'm missing)

i'm adding solution problem here in case stumbles across issue.

so beginning code entered in following file on woothemes ups shipping method plugin: class-wc-paypal-advanced.php

i added following line: 'custom' => $order ->get_shipping_method(), , sends "custom" attribute paypal read "ups ground" or "2nd day air" in paypal transaction details.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -