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

#   CanadaPost insurance calculation - fix

##

- **[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 [\#210438](#210438) by [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")  *[CanadaPost insurance calculation - fix](/forum/28-shipping-methods/878547-canadapost-insurance-calculation-fix#210438 "-- url of the page with the problem -- :   albertatacticalrifle.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.6.10  CanadaPost (CP) plugin doesn't pass to the CP server the order price. Thus the server returns shipping method prices without insurance included. CP server thinks I want to send a product without insurance (zero price).  So I modified the CP plugin to include the order price. Can you pleas include the insurance fix in the next CP plugin version?  So file: plugins/hikashopshipping/canadapost/canadapost.php Line about 416 After  I added  Now server returns correct shipping rates.")* 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

CanadaPost (CP) plugin doesn't pass to the CP server the order price. Thus the server returns shipping method prices without insurance included. CP server thinks I want to send a product without insurance (zero price).

So I modified the CP plugin to include the order price. Can you pleas include the insurance fix in the next CP plugin version?

So file:
**plugins/hikashopshipping/canadapost/canadapost.php**
Line about 416
After Code:

$data['XMLpackage'] .= '&lt;turnAroundTime&gt; ' . $data['turnaround_time'] . ' &lt;/turnAroundTime&gt;';

I added Code:

$data['XMLpackage'] .= ' &lt;itemsPrice&gt; '.$order-&gt;total-&gt;prices[0]-&gt;price_value.' &lt;/itemsPrice&gt; ';

Now server returns correct shipping rates.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc4NTQ3LWNhbmFkYXBvc3QtaW5zdXJhbmNlLWNhbGN1bGF0aW9uLWZpeD90bXBsPW1hcmtkb3du) 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 [\#210460](#210460) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[CanadaPost insurance calculation - fix](/forum/28-shipping-methods/878547-canadapost-insurance-calculation-fix#210460 "-- url of the page with the problem -- :   albertatacticalrifle.com  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.6.10  CanadaPost (CP) plugin doesn't pass to the CP server the order price. Thus the server returns shipping method prices without insurance included. CP server thinks I want to send a product without insurance (zero price).  So I modified the CP plugin to include the order price. Can you pleas include the insurance fix in the next CP plugin version?  So file: plugins/hikashopshipping/canadapost/canadapost.php Line about 416 After  I added  Now server returns correct shipping rates.")*

Hi,

Sure, we can add that code in the plugin.

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=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc4NTQ3LWNhbmFkYXBvc3QtaW5zdXJhbmNlLWNhbGN1bGF0aW9uLWZpeD90bXBsPW1hcmtkb3du) 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.045 seconds

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