Canada Post shipping module - Handling Fee

(1/1)

cbblues:
Thanks to all of you who take the time to report bugs and fixes to the forums. I was able to install my Canada Post shipping module and have it work properly by following some of the steps listed in several posts.

I now have only one (at least I think it's only one!) problem left to fix.

I have added a handling fee of CAN $1.50 in the Canada Post set up but when I do test orders, the handling fee is not added or shown with the shipping charges. I called the Sellonline tech support and she tells me it is probably because of XML. I am not a coder or hacker for that matter - basically a graphic and web designer that can more or less find her way around code but I don't know where to begin to solve this one.

Has anyone here had the same problem? Can anyone offer some guidance or tell me what I need to do to get the handling fee to be added to the final total?

Any help would be greatly appreciated.

My site is www.canadianblues.ca but the shop is not live yet.

dave37:
Same problem here.  Canada Post said:

 the reason why your handling fee is not added automaticaly to you shipping quote is because it is returned through a seperate XML TAG called "handling".
This XML TAG is to be manipulated on your end through your shopping cart. If you want to have the handling fee to be added automaticaly to the shipping quote we would need to change the SOL response format to HTML. Right now your shipping profile is set to return the SOL response in XML format.

Now, I had them change my profile to html, but then no data would appear under the "select shipping method" in Virtuemart so I had them change it back to XML.  Any idea how to add and process the XML TAG "handling" that they are talking about?

edit:

Here is another reply from Canada Post that hopefully sheds some light on it:

Sell Online does not add the handling fee on to the cost, for xml return.  The merchant website code is expected to find the tag <handling></handling> and add on the value returned in that tag.

The <handling></handling> tag is part of the SOL response sent back to your website from the SOL service.

Your website coding must be able to find the  <handling></handling> tag value and add it to the cost.

 ???

GoBeyond:
Hope this will save someone hours...
(since his lines numbers were off, just search for the code and you will find the line)

--

Handling Fees – The XML request did not have a tag for <handling> which is returned by CPC Sell OnLine. Added code to fetch handling charge and add to rate.

After this block of code:

else {
$this->error = false;
$startTag = 'eparcel/ratesAndServicesResponse/';
$this->shipping_comment = fetchValue( $xd, $startTag . 'comment' );

ADD:
$this->shipping_handling = fetchValue( $xd, $startTag . 'handling' );

After this block of code:

<?php
foreach( $this->shipping_methods as $m ){

ADD:
$m['rate'] += $this->shipping_handling; // mwf add handling fee to rate

This (and other fixes) found on this site:
http://www.exps.ca/index.php?option=com_content&view=article&id=44&Itemid=55&limitstart=6

Navigation

[0] Message Index