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

#   Shipping description as line item in Paypal

##

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

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 11 months ago [\#179914](#179914) by [wayneft](/forum/user/33908-wayneft "View wayneft's Profile")  *[Shipping description as line item in Paypal](/forum/29-payment-methods/873062-shipping-description-as-line-item-in-paypal#179914 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  I'm not sure if this is a shipping plugin question or payment plugin question but I'll post it here.  Is there a way to get the shipping method type as a line item with the Paypal plugin? I use the USPS shipping plugin and have three types of shipping available (priority, express and first class). When the payment is made the shipping total shows up as a line item in Paypal but there is no description as to which method is chosen. So when the email from Paypal comes across it displays as this:  I use a third party shipping software (Shipstation) to import the orders from Paypal and I can map names and setup automatic shipping methods. Unfortunately there is no description other than the word shipping so I will have to open each invoice separately to determine the shipping method. Any ideas?")* was created by *[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.15
-- Browser(s) name and version -- : Chrome

I'm not sure if this is a shipping plugin question or payment plugin question but I'll post it here.

Is there a way to get the shipping method type as a line item with the Paypal plugin?
I use the USPS shipping plugin and have three types of shipping available (priority, express and first class). When the payment is made the shipping total shows up as a line item in Paypal but there is no description as to which method is chosen. So when the email from Paypal comes across it displays as this:
Code:

Shipping details: You haven’t added any shipping details. ----------------------------------- Purchase Details ----------------------------------- Description:BMA250, Item#:DSSC-0117 Unit price:$9.00 USD Qty:1 Amount:$9.00 USD Description:Shipping, Item#: Unit price:$5.75 USD Qty:1 Amount:$5.75 USD

I use a third party shipping software (Shipstation) to import the orders from Paypal and I can map names and setup automatic shipping methods. Unfortunately there is no description other than the word shipping so I will have to open each invoice separately to determine the shipping method. Any ideas?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 11 months ago [\#180000](#180000) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shipping description as line item in Paypal](/forum/29-payment-methods/873062-shipping-description-as-line-item-in-paypal#180000 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  I'm not sure if this is a shipping plugin question or payment plugin question but I'll post it here.  Is there a way to get the shipping method type as a line item with the Paypal plugin? I use the USPS shipping plugin and have three types of shipping available (priority, express and first class). When the payment is made the shipping total shows up as a line item in Paypal but there is no description as to which method is chosen. So when the email from Paypal comes across it displays as this:  I use a third party shipping software (Shipstation) to import the orders from Paypal and I can map names and setup automatic shipping methods. Unfortunately there is no description other than the word shipping so I will have to open each invoice separately to determine the shipping method. Any ideas?")*

Hello,
That's a payment plugin question, to do that you'll have to directly edit the code of the "paypal.php" file of the PayPal plugin, editing these lines should do the job : Code:

if(!empty($order-&gt;order_shipping_price) &amp;&amp; bccomp($order-&gt;order_shipping_price, 0, 5)) { $vars['item_name_' . $i] = JText::_('HIKASHOP_SHIPPING'); $vars['amount_' . $i] = round($order-&gt;order_shipping_price - @$order-&gt;order_shipping_tax, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']); $tax += round($order-&gt;order_shipping_tax, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']); $vars['quantity_' . $i] = 1; $i++; }

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 11 months ago [\#180095](#180095) by [wayneft](/forum/user/33908-wayneft "View wayneft's Profile")  Replied by *[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")* on topic *[Shipping description as line item in Paypal](/forum/29-payment-methods/873062-shipping-description-as-line-item-in-paypal#180095 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  I'm not sure if this is a shipping plugin question or payment plugin question but I'll post it here.  Is there a way to get the shipping method type as a line item with the Paypal plugin? I use the USPS shipping plugin and have three types of shipping available (priority, express and first class). When the payment is made the shipping total shows up as a line item in Paypal but there is no description as to which method is chosen. So when the email from Paypal comes across it displays as this:  I use a third party shipping software (Shipstation) to import the orders from Paypal and I can map names and setup automatic shipping methods. Unfortunately there is no description other than the word shipping so I will have to open each invoice separately to determine the shipping method. Any ideas?")*

Thanks Mohamed but that code appears to be the same code that is already in the file?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 11 months ago [\#180163](#180163) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shipping description as line item in Paypal](/forum/29-payment-methods/873062-shipping-description-as-line-item-in-paypal#180163 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  I'm not sure if this is a shipping plugin question or payment plugin question but I'll post it here.  Is there a way to get the shipping method type as a line item with the Paypal plugin? I use the USPS shipping plugin and have three types of shipping available (priority, express and first class). When the payment is made the shipping total shows up as a line item in Paypal but there is no description as to which method is chosen. So when the email from Paypal comes across it displays as this:  I use a third party shipping software (Shipstation) to import the orders from Paypal and I can map names and setup automatic shipping methods. Unfortunately there is no description other than the word shipping so I will have to open each invoice separately to determine the shipping method. Any ideas?")*

Hello,
You'll just have to change that line : Code:

$vars['item_name_' . $i] = JText::_('HIKASHOP_SHIPPING');

By these lines : Code:

if(!empty($order-&gt;order_shipping_method)) $vars['item_name_' . $i] = $order-&gt;order_shipping_method; else $vars['item_name_' . $i] = JText::_('HIKASHOP_SHIPPING');

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 11 months ago [\#180240](#180240) by [wayneft](/forum/user/33908-wayneft "View wayneft's Profile")  Replied by *[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")* on topic *[Shipping description as line item in Paypal](/forum/29-payment-methods/873062-shipping-description-as-line-item-in-paypal#180240 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  I'm not sure if this is a shipping plugin question or payment plugin question but I'll post it here.  Is there a way to get the shipping method type as a line item with the Paypal plugin? I use the USPS shipping plugin and have three types of shipping available (priority, express and first class). When the payment is made the shipping total shows up as a line item in Paypal but there is no description as to which method is chosen. So when the email from Paypal comes across it displays as this:  I use a third party shipping software (Shipstation) to import the orders from Paypal and I can map names and setup automatic shipping methods. Unfortunately there is no description other than the word shipping so I will have to open each invoice separately to determine the shipping method. Any ideas?")*

Thanks Mohamed but is there any way to get it to send the type of shipping for USPS. Currently this code sends the description, usps, but it doesn't specify which method of USPS (ie First Class, Priority, Express, etc...). Would it be possible to pass that parameter as well?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 11 months ago [\#180287](#180287) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shipping description as line item in Paypal](/forum/29-payment-methods/873062-shipping-description-as-line-item-in-paypal#180287 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  I'm not sure if this is a shipping plugin question or payment plugin question but I'll post it here.  Is there a way to get the shipping method type as a line item with the Paypal plugin? I use the USPS shipping plugin and have three types of shipping available (priority, express and first class). When the payment is made the shipping total shows up as a line item in Paypal but there is no description as to which method is chosen. So when the email from Paypal comes across it displays as this:  I use a third party shipping software (Shipstation) to import the orders from Paypal and I can map names and setup automatic shipping methods. Unfortunately there is no description other than the word shipping so I will have to open each invoice separately to determine the shipping method. Any ideas?")*

Hello,

> Would it be possible to pass that parameter as well?

That will require more code customization, which won't be that easy to do.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzMwNjItc2hpcHBpbmctZGVzY3JpcHRpb24tYXMtbGluZS1pdGVtLWluLXBheXBhbD90bXBsPW1hcmtkb3du) 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.326 seconds

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

[](#top)
