Community Add-Ons
| Maintainers: | shimonp |
eShipper Integration Module for shipping with Canada Post, UPS, Fedex, Purolator, DHL and UPS
for osCommerce Online Merchant v2.2
This single shipping module will allow you to avoid integration with all other shipping modules, e.g. Fedex, Canada Post, UPS, Purolator, DHL etc.
eShipper is providing heavily discounted rated for the above vendors you may only dream of.
I promise full support and constant improvement of this module as we use is for more than 2 years at our website http://www.onlybestrated.com.
New version of API is out there - read what changed at the top of the file to see if you need new features...
Found a nasty bug when our store has switched to USD as default currency. eShipper returns all responses in Canada in CAD, so if default currency of the store is different from CAD, responses should be adjusted even if in Canada. This fix will do the trick (added base currency tot he module, which is CAD in our case) and compare in the eshipper.php if default currency is different from base currency of the module. Simply copy attached eshipper.php to the same location and run *.sql in phpMyAdmin (or from command line)
Shimon
i think you guy missed the important part!
i installed this and i have to add this to most of the sql query that you don't have, where it won't update or retreive the dimension.
"products_dim_type, products_weight_type, products_length, products_width, products_height,"
also, i after it updated the dimension value, but it won't display or update the type, so i searched around and i found that through out all your packages, you guy didn't have this block of code for canada post...
I insert it in admin/catagories.php,
find:
if (!isset($pInfo->products_status)) $pInfo->products_status = '1';
switch ($pInfo->products_status) {
case '0': $in_status = false; $out_status = true; break;
case '1':
default: $in_status = true; $out_status = false;
}
add this below
//canadapost_Fix_crshNbrn start
if (!isset($pInfo->products_weight_type)) $pInfo->products_weight_type = 'lbs';
switch ($pInfo->products_weight_type) {
case 'kgs': $in_weight_type = false; $out_weight_type = true; break;
case 'lbs':
default: $in_weight_type = true; $out_weight_type = false;
}
if (!isset($pInfo->products_dim_type)) $pInfo->products_dim_type = 'in';
switch ($pInfo->products_dim_type) {
case 'cm': $in_dim_type = false; $out_dim_type = true; break;
case 'in':
default: $in_dim_type = true; $out_dim_type = false;
}
//canadapost_Fix_crshNbrn end
wala, it works!.....
Well, i'm pretty sure there's a lot of stuff are missing because i can't seem to compare anything new in the admin/includes/general.php
According to eShipper, there is no need to open a separate API account. Your web account is also an API account. ZIP file is empty and only contains same information.
I will continue to maintain the module when new functionality becomes available.
Shimon
Sorry, guys, but previous post on the same subject has incorrectly left some garbage in the file. It's polished now. All options should now work correctly.
Simply replace file with the same name in admin/includes/classes/eshipper_shipment.php
1. eShipper has slightly changed API to make insurance per package rather than per shipment.
2. Improved error handling for most typical pitfalls
3. New documentation included
Full package. Fixed packingUPSStyle and modified shipping estimate to work with eShipper (added city and province for US, Canada etc.)
Please, read Readme.txt and Install.html.
If you need to test eShipper module, you may use the following test account:
Username: sysconet
Password: 1234
Make sure to set module configuration Live model to false.
Also, if you need real API credentials after opening account through http://www.e-shipper.com/obr, send email requesting so to Riz Kermalli [rkermalli@canadaworldwide.com]
Zip file is empty.
Proper implementation of customs documentation. Harmonized codes can be now set for each product through Product Updates.
Also:
- Minor bug fixes.
- logger.php renamed to elogger.php to avoid conflict with existing admin/classes/logger.php
- Proper documentation generated
Full Package
Fixed names of Canada Post international names. Only catalog/includes/modules/shipping/eshipper.php is included. The rest is the same.
Simply replace with this version. All subsequent version will automatically include this one.
The latest fixes to the installation instructions (including notice about pair of credentials, one for eShipper, one for API access) and minor change to admin/modules.php (to support arrays in configuration)
We now have several confirmed successful installations of the module, so it does work. More we use it, more issues I"ll be able to fix/polish out.
Full package.
Folks, to diffuse some confusion around credentials for this module, during sign up process you get only username/password allowing you to see the transactions at http://www.e-shipper.com
You need the second pair of transactions to use API itself. Please, send mail to me stating you need credentials for API as well. I am working with eShipper to make this process more efficient.
(zip file is empty in attachment)
I start versioning of this module. Major changes:
1. Fixed all issues reported so far by various users (Special thank to Anthony for helping me out!!!)
2. Renamed logger.php to elogger.php to avoid conflict with existing logger.php in admin section
3. Fixed address.php to avoid sending acutes directly to eShipper (eShipper seems to have issues with accutes)
4. Fixed eshipper_shipment.php to avoid troubles of SAX parser with & in the value field
5. Added categories.php and clean order.php for the reference.
6. Added admin/includes/functions/general.php for the reference.
7. Added full path to store installation to avoid questionable practice of chdir() used before.
8. Added path to the log file, so you can configure where to store log instead of keeping it in default /tmp location
I'll continue to support this module as much as I can. More we use it, more benefits (better prices!) we all get.
Shimon
Fixed customs information. Updated admin/includes/classes/order.php to satisfy most users out there (you should be safe with new version of order.php after applying SQL changes to products table)
Full package. Thank you for your comments!!!
I've added a new configuration parameter to eShipper admin (absolute path to the root of the store) to avoid use of chdir(), which is unreliable in the way I was using it. You should now get consistent results. You may see how quotes work and what it looks like after you add product at http://www.onlybestrated.com or follow checkout procedure to the shipping screen.
Full package attached.
Support forum has been established to support users of this module: http://forums.oscommerce.com/index.php?showtopic=291921
Looking forward to all your email, suggestions, bug reports etc.
Please, notice that current customs invoice (if you ship internationally) assumes only "typical" product with single harmonized code through eShipper Admin. I am thinking to replace it in future with more flexible mechanism, but this will require a new field in products table
Fixed minor type in language file. Added Estimated Shipping Quotes contribution (more details in http://addons.oscommerce.com/info/3072)
New columns to the products table are now created from eShipper.sql script rather than through manual instructions.
This single shipping module will allow you to avoid integration with all other shipping modules, e.g. Fedex, Canada Post, UPS, Purolator, DHL etc.
eShipper is providing heavily discounted rated for the above vendors you may only dream of.
I promise full support and constant improvement of this module as we use is for more than 2 years at our website http://www.onlybestrated.com.
