Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    4
    Plugin Contributions
    0

    Default CanPar Shipping Module

    I am using zc1.3.8a, and I am trying to use the CanPar shipping module. Every time I have tried it, it returns $0.00 as the quote. I have checked and double-checked the CanPar address:
    ( $body = file_get_contents('http://www.canpar.com/CanparRateXML/BaseRateXML.jsp?' . $request);
    $body_array = explode("<BaseRate>", $body);
    This seems to be right

    I have changed the 3's to 6's in
    $srcFSA = substr(strtoupper(SHIPPING_ORIGIN_ZIP), 0, 3);
    $desFSA = substr(strtoupper($order->delivery['postcode']), 0, 3);
    Neither 3 nor 6 worked.

    I really have no idea why this is not working. Might anybody have any insight/tips/etc?

  2. #2
    Join Date
    Mar 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: CanPar Shipping Module

    Some progress has been made. Although changing the postal codes from 3 to 6 characters did not work for me (as recommended here: http://www.zen-cart.com/forum/showthread.php?t=96878), I did have luck with the following modification:

    http://www.zen-cart.com/forum/showthread.php?t=133556

    just replace 'origin=' . $srcFSA,
    'dest=' . $desFSA,

    with
    'origin=' . $srcFSA .'1a1',
    'dest=' . $desFSA .'1a1',

    (in the canpar.php file)
    and it works fine!
    I am now able to calculate the freight charge, but nothing else (ie cod, xc, dec), nor does the mark-up field seem to be working. Additionally, I have not been able to find a way to add in the fuel surcharge. Anybody have any suggestions for how to do this, or what might be going on that I cannot add these into the calculation?

    Thanks

  3. #3
    Join Date
    Nov 2007
    Posts
    270
    Plugin Contributions
    0

    Default Re: CanPar Shipping Module

    Installed CanPar module on zen1.3.9b, applied suggested fixes:
    Code:
    $srcFSA = substr(str_replace(" ", "", strtoupper(SHIPPING_ORIGIN_ZIP)), 0, 6);
    $desFSA = substr(str_replace(" ", "", strtoupper($order->delivery['postcode'])), 0, 6);
    and

    'origin=' . $srcFSA .'1a1',
    'dest=' . $desFSA .'1a1',

    but still is does not calculate any shipping ($0.00).
    Does anybody have it working?
    Tx
    Veronika

 

 

Similar Threads

  1. CanPar Module not giving shipping rates
    By RobertG in forum Addon Shipping Modules
    Replies: 0
    Last Post: 23 Aug 2010, 06:42 PM
  2. CanPar Shipping XML Module
    By coeus in forum Addon Shipping Modules
    Replies: 11
    Last Post: 12 Apr 2010, 11:43 PM
  3. Canpar shipping Module
    By RobertG in forum Addon Shipping Modules
    Replies: 2
    Last Post: 19 Dec 2009, 06:45 PM
  4. Canpar Shipping XML
    By bellilint in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 31 Oct 2008, 07:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg