[Skip to main content](#vessel-content)

#   Need Shipping Method on PayPal checkout page.

##

- **[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")**
- [![LukeDouglas's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29032-lukedouglas "View LukeDouglas's Profile") Topic Author
- [ Offline](/forum/user/29032-lukedouglas)

Less More

- Posts: 332
- Thank you received: 6
-
-

11 years 2 months ago [\#213372](#213372) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  *[Need Shipping Method on PayPal checkout page.](/forum/27-checkout/879115-need-shipping-method-on-paypal-checkout-page#213372 "-- url of the page with the problem -- :   fearlessrider.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.33 -- Browser(s) name and version -- : Multiple -- Error-message(debug-mod must be tuned on) -- : No error message.  I read this post, , about the issue with a plain 'Shipping' listed on the PayPal checkout. I have a similar issue with a client that needs to know not only that the shipping is 'USPS' but if it is 'Priority Mail' or 'First Class Mail' so they can have the proper shipping label generated.  Can this be done and, if so, how?")* was created by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")*

-- url of the page with the problem -- : [ fearlessrider.com](http://fearlessrider.com)
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.33
-- Browser(s) name and version -- : Multiple
-- Error-message(debug-mod must be tuned on) -- : No error message.

I read this post, [ ](http://hikashop.com/forum/payment-methods/873062-shipping-description-as-line-item-in-paypal.html#179914)[ hikashop.com/forum/payment-methods/87306...n-paypal.html#179914](http://hikashop.com/forum/payment-methods/873062-shipping-description-as-line-item-in-paypal.html#179914), about the issue with a plain 'Shipping' listed on the PayPal checkout. I have a similar issue with a client that needs to know not only that the shipping is 'USPS' but if it is 'Priority Mail' or 'First Class Mail' so they can have the proper shipping label generated.

Can this be done and, if so, how?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTExNS1uZWVkLXNoaXBwaW5nLW1ldGhvZC1vbi1wYXlwYWwtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#213375](#213375) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Need Shipping Method on PayPal checkout page.](/forum/27-checkout/879115-need-shipping-method-on-paypal-checkout-page#213375 "-- url of the page with the problem -- :   fearlessrider.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.33 -- Browser(s) name and version -- : Multiple -- Error-message(debug-mod must be tuned on) -- : No error message.  I read this post, , about the issue with a plain 'Shipping' listed on the PayPal checkout. I have a similar issue with a client that needs to know not only that the shipping is 'USPS' but if it is 'Priority Mail' or 'First Class Mail' so they can have the proper shipping label generated.  Can this be done and, if so, how?")*

Hi,

You can use the same kind of code than in the order display. Code:

echo JText::_('HIKASHOP_SHIPPING_METHOD') . ' : '; if(is_string($this-&gt;order-&gt;order_shipping_method)) { if(strpos($this-&gt;order-&gt;order_shipping_id, '-') !== false) echo $this-&gt;shippingClass-&gt;getShippingName($this-&gt;order-&gt;order_shipping_method, $this-&gt;order-&gt;order_shipping_id); else echo $this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order_shipping_method, $this-&gt;order-&gt;order_shipping_id); } else echo implode(', ', $this-&gt;order-&gt;order_shipping_method);

Where "shipping" and "shippingClass" are coming from Code:

$pluginsShipping = hikashop_get('type.plugins'); $pluginsShipping-&gt;type='shipping'; $this-&gt;assignRef('shipping',$pluginsShipping); $shippingClass = hikashop_get('class.shipping'); $this-&gt;assignRef('shippingClass', $shippingClass);

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTExNS1uZWVkLXNoaXBwaW5nLW1ldGhvZC1vbi1wYXlwYWwtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")**
- [![LukeDouglas's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29032-lukedouglas "View LukeDouglas's Profile") Topic Author
- [ Offline](/forum/user/29032-lukedouglas)

Less More

- Posts: 332
- Thank you received: 6
-
-

11 years 2 months ago [\#213402](#213402) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Need Shipping Method on PayPal checkout page.](/forum/27-checkout/879115-need-shipping-method-on-paypal-checkout-page#213402 "-- url of the page with the problem -- :   fearlessrider.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.33 -- Browser(s) name and version -- : Multiple -- Error-message(debug-mod must be tuned on) -- : No error message.  I read this post, , about the issue with a plain 'Shipping' listed on the PayPal checkout. I have a similar issue with a client that needs to know not only that the shipping is 'USPS' but if it is 'Priority Mail' or 'First Class Mail' so they can have the proper shipping label generated.  Can this be done and, if so, how?")*

Jerome,

I'm not a neophyte as I 'use' to be in application development back in the 70's - 90's, which is basically the dinosaur era, but if you could let me know the file name to be changed as well as a before and after view of the code you are instructing me to change, that would be terrific.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTExNS1uZWVkLXNoaXBwaW5nLW1ldGhvZC1vbi1wYXlwYWwtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 2 months ago [\#213403](#213403) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Need Shipping Method on PayPal checkout page.](/forum/27-checkout/879115-need-shipping-method-on-paypal-checkout-page#213403 "-- url of the page with the problem -- :   fearlessrider.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.33 -- Browser(s) name and version -- : Multiple -- Error-message(debug-mod must be tuned on) -- : No error message.  I read this post, , about the issue with a plain 'Shipping' listed on the PayPal checkout. I have a similar issue with a client that needs to know not only that the shipping is 'USPS' but if it is 'Priority Mail' or 'First Class Mail' so they can have the proper shipping label generated.  Can this be done and, if so, how?")*

Hi,

The file to change is plugins/hikashoppayment/paypal/paypal.php
The change explained in that other thread ( [ hikashop.com/forum/payment-methods/87306...n-paypal.html#180163](http://hikashop.com/forum/payment-methods/873062-shipping-description-as-line-item-in-paypal.html#180163) ) will use the shipping method name instead of just "shipping".
For the service name, I guess you could change the line: Code:

$vars['item_name_' . $i] = $order-&gt;order_shipping_method;

to: Code:

$vars['item_name_' . $i] = $order-&gt;order_shipping_method.' '.$order-&gt;order_shipping_id;

in the code change of the other thread.

Please note that this is outside user support.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTExNS1uZWVkLXNoaXBwaW5nLW1ldGhvZC1vbi1wYXlwYWwtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
