OpenCart

CanadaPost Module 1.7 for OpenCart 1.4.8b

Click on the image to download current version

CanadaPost OpenCart Shipping module

Description

This shipping module plugs into the Canada Post Sell Online server to provide real-time shipping estimates.

Changes

1.7

  • Added the Admin token system to make it compatible with OpenCart 1.4.8 and 1.4.8b

1.6

  • Adapting system to news templates of OpenCart 1.4.7
  • French names submission bug fixes
  • Minor bug fixes

1.5

  • Multilingual
  • French added
  • Bug Fix : Accent in user name and address no longuer cause connetion breach
  • templates adapted to OpenCart 1.4.0
  • coding adapted to OpenCart 1.4.0

1.0

  • can connect to canada post and deliver theirs prices as shipping choices

Original author : http://attemptone.com/opencart/

Installation

  1. Unzip file
  2. Upload files to corresponding folders on your site. (This is an independent module and no core files will be overwritten)
  3. Login to the admin area on your site.
  4. Go to Extensions >> Shipping
  5. Find Canada Post module and install it.
  6. Edit module with your information

Please Note

This module will only work being shipped from canada. The destination address requires a postal code/zip code and has only been tested with Canadian and American addresses.

This module assumes Canadian pricing as the Canada Post Server returns pricing information in Canadian dollars.

This module is in no way affiliated with Canada Post. Canada Post does not provide support for this module nor do the endorse it.

You Will Need A Canada Post Merchant Id

First you must have a Customer/Venture One Number. If you don`t have Customer/Venture One Number, call 1 800 260 7678 or visit their website.

If you do have a Customer/Venture One Number, you must request a Merchant Id from sellonline.
They can be contacted by:
Email: sellonline@canadapost.ca
Phone: 1-866-511-0546

    It will require the follogin information:

  • CUSTOMER / VENTURE ONE NUMBER:
  • COMPANY NAME:
  • ADDRESS:
  • CITY:
  • PROVINCE:
  • POSTAL CODE:
  • MAIN CONTACT:
  • TELEPHONE NUMBER:

Download Canada Post Shipping Module

Bookmark and Share
  • #1 écrit par Stinn
    about 6 months ago

    Handling wasn't being added on to the shipping price. I had to add some code into /catalog/model/shipping/canadapost.php

    This is the code I added right above the construction of $aryProducts.

    $cp_handling = $this->config->get('canadapost_handling');
    $rate = $rate +$cp_handling;

    If there is another method that should make this work without this let me know.

  • #2 écrit par Berry
    about 5 months ago

    I just installed this, and when I clicked the Edit link in Shipping Extensions, I see the error:

    Fatal error: Call to a member function https() on a non-object in /home/rkberry/public_html/ocart/admin/controller/shipping/canadapost.php on line 74

    Any ideas?

  • #3 écrit par Maranda
    about 5 months ago

    I keep getting an error that says "Error connecting to Canada Post". Ideas?

  • #4 écrit par Olivier Labbé
    about 5 months ago

    there is somes posibilities of getting the « Error connecting to Canada Post » error, the first one is that your webhost refuse outgoing fopen connections, thee second is some specials chars in the names of products / city / clients, and 3rd is an error in your CPC code.

  • #5 écrit par e_wich
    about 4 months ago

    Hi Olivier,

    I just downloaded OpenCart and your Canada Post module. The version of OpenCart is now 1.4.6, so I'm not getting the Canada Post module to work yet - can you advise if it will be possible with this new version of OpenCart?

    Many Thanks!

  • #6 écrit par Olivier Labbé
    about 4 months ago

    I'll work this week on a working version with the new 1.4.7

  • #7 écrit par Braden MacDonald
    about 3 months ago

    Hi, any updates on this? I'm trying to find a link to download the module, but the link above is no longer working.

  • #8 écrit par Olivier Labbé
    about 3 months ago

    Now updated to work with OpenCart 1.4.7

  • #9 écrit par Ian
    about 2 months ago

    Hi, will you be updating this to work with version 1.4.8?

  • #11 écrit par Chris
    about 1 month ago

    I have been trying to get this to work... in the admin area I get the following...

    Tax Class: None Taxable Goods
    Geo Zone: All Zones Ontario
    Sort Order:

    '.$entry_sellonline.''; ?>

    It is the '.$entry_sellonline.''; ?> that seems to be incorrect.

    also when I go to check out. I get the following under shipping method...

    Please select the preferred shipping methods to use on this order.

    Canada Post
    Warning: Invalid argument supplied for foreach() in C:\websites\projector-lamps-canada\htdocs\catalog\view\theme\default\template\checkout\shipping.tpl on line 37

    Any assistance you can give me on this would be greatly appreciated.

    Sincerely,

    Chris Whiting

  • #12 écrit par al
    about 2 weeks ago

    Hi I am also having problems on my test site with Error connecting to Canada Post. I saw your earlier post about the three conditions that can cause this. I allow outfoing fopen connections, I haven no special characters from what I can tell and I am using the demo CPC_DEMO_XML merchant ID.
    It was working when I first installed it and now for some reason it will no longer work. Error log has the following entires.
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: entry_standard in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl
    on line 28
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: canadapost_standard in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 30
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: entry_express in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 40
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: canadapost_express in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 42
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: entry_postcode in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 52
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: canadapost_postcode in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 53
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: entry_estimate in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 63
    2010-08-16 19:34:08 - PHP Notice: Undefined variable: canadapost_estimate in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 65
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: entry_standard in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 28
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: canadapost_standard in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 30
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: entry_express in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 40
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: canadapost_express in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 42
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: entry_postcode in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 52
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: canadapost_postcode in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 53
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: entry_estimate in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 63
    2010-08-16 19:34:41 - PHP Notice: Undefined variable: canadapost_estimate in /var/www/dev/store/admin/view/template/shipping/canadapost.tpl on line 65

    Any ideas on what the problem may be.

  • #13 écrit par al
    about 1 week ago

    Nevermind, it appears that it was related to measurements and weight of items. when the values are really high I am getting the error. As it is a test site my values were just filled with anything. Might be a bug but I will know when I populate with actual dimensions and weight.

Aucun trackback pour l'instant