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

#   CanadaPost handling fee

##

- **[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")**
- [![remotelyyours's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27477.png)](/forum/user/27477-remotelyyours "View remotelyyours's Profile") Topic Author
- [ Offline](/forum/user/27477-remotelyyours)

Less More

- Posts: 28
- Thank you received: 3
-
-

11 years 3 months ago [\#210440](#210440) by [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")  *[CanadaPost handling fee](/forum/28-shipping-methods/878548-canadapost-handling-fee#210440 "-- url of the page with the problem -- :   albertatacticalrifle.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.6.10  Currently CanadaPost (CP) plugin ignores handlig fee options. Here how it looks in the sellonline.canadapost.ca profile:  The handling fee should be added to the shipping rate calculated and returned by the CP server. The handling fee is returned by the server, but the HikasShop CP plugin ignores it. Here is an XML fragment returned by the CP server:  I badly need to include it. This how I fixed the issue. In file plugins/hikashopshipping/canadapost/canadapost.php line about 630-635 is  After it I added the handling fee inclusion  Please include this in the next plugin version so I don't loose my modifications.  Thank you.")* was created by *[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")*

-- url of the page with the problem -- : [ albertatacticalrifle.com](http://albertatacticalrifle.com)
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.6.10

Currently CanadaPost (CP) plugin ignores handlig fee options.
Here how it looks in the sellonline.canadapost.ca profile:
[ ![&#91;img](http://static.xscreenshot.com/small/2015/08/02/08/screen_d101a85027714c189bc13b2bc465139a) ](http://view.xscreenshot.com/d101a85027714c189bc13b2bc465139a)

The handling fee should be added to the shipping rate calculated and returned by the CP server. The handling fee is returned by the server, but the HikasShop CP plugin ignores it.
Here is an XML fragment returned by the CP server:
[ ![&#91;img](http://static.xscreenshot.com/small/2015/08/02/08/screen_a936186fac3361b03665024447c6d0f4) ](http://view.xscreenshot.com/a936186fac3361b03665024447c6d0f4)

I badly need to include it. This how I fixed the issue.
In file
**plugins/hikashopshipping/canadapost/canadapost.php**
line about 630-635 is Code:

foreach($xml-&gt;ratesAndServicesResponse-&gt;product as $rate){ $shipment[$i]['value'] = $rate-&gt;rate-&gt;__toString();

After it I added the handling fee inclusion Code:

if (isset($xml-&gt;ratesAndServicesResponse-&gt;handling)) { $handling = $xml-&gt;ratesAndServicesResponse-&gt;handling-&gt;__toString(); $shipment[$i]['value'] = $shipment[$i]['value']+$handling; }

[ ![&#91;img](http://static.xscreenshot.com/small/2015/08/02/08/screen_8c12f5b760ef03440e6618b674e1a83f) ](http://view.xscreenshot.com/8c12f5b760ef03440e6618b674e1a83f)

Please include this in the next plugin version so I don't loose my modifications.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc4NTQ4LWNhbmFkYXBvc3QtaGFuZGxpbmctZmVlP3RtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#210461](#210461) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[CanadaPost handling fee](/forum/28-shipping-methods/878548-canadapost-handling-fee#210461 "-- url of the page with the problem -- :   albertatacticalrifle.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.6.10  Currently CanadaPost (CP) plugin ignores handlig fee options. Here how it looks in the sellonline.canadapost.ca profile:  The handling fee should be added to the shipping rate calculated and returned by the CP server. The handling fee is returned by the server, but the HikasShop CP plugin ignores it. Here is an XML fragment returned by the CP server:  I badly need to include it. This how I fixed the issue. In file plugins/hikashopshipping/canadapost/canadapost.php line about 630-635 is  After it I added the handling fee inclusion  Please include this in the next plugin version so I don't loose my modifications.  Thank you.")*

Hi,

I integrated you patch in the plugin ; it will be reviewed by the team before the release.

Regards,

---

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

The following user(s) said Thank You: [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")

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

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