Skip to main content

CanadaPost insurance calculation - fix

11 years 3 months ago #210438 by remotelyyours
-- 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
Code:
$data['XMLpackage'] .= '<turnAroundTime> ' . $data['turnaround_time'] . ' </turnAroundTime>';
I added
Code:
$data['XMLpackage'] .= ' <itemsPrice> '.$order->total->prices[0]->price_value.' </itemsPrice> ';

Now server returns correct shipping rates.

Please Log in or Create an account to join the conversation.

11 years 3 months ago #210460 by Jerome
Hi,

Sure, we can add that code in the plugin.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: remotelyyours

Please Log in or Create an account to join the conversation.

Time to create page: 0.038 seconds
Powered by Kunena Forum