- Posts: 28
- Thank you received: 3
CanadaPost insurance calculation - fix
- remotelyyours
-
Topic Author
- Offline
Less
More
11 years 1 month ago #210438
by remotelyyours
CanadaPost insurance calculation - fix was created 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
I added
Now server returns correct shipping rates.
-- 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>';
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 1 month ago #210460
by Jerome
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.
Replied by Jerome on topic CanadaPost insurance calculation - fix
Hi,
Sure, we can add that code in the plugin.
Regards,
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.154 seconds