CanadaPost insurance calculation - fix

  • Posts: 28
  • Thank you received: 3
9 years 3 months ago #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

$data['XMLpackage'] .= '<turnAroundTime> ' . $data['turnaround_time'] . ' </turnAroundTime>';
I added
$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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #210460

Hi,

Sure, we can add that code in the plugin.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: remotelyyours

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

Time to create page: 0.056 seconds
Powered by Kunena Forum