Hi there,
I am little confused with installing the CP shipping module...
I have upgraded to ZenCart 1.3.9d (from v1.3.9c) yesterday. I just installed v1.3.9c not long ago and I was just learning how to get around so none of files were customized so I printed out changelog files and simply copied to my site.
Now, I am trying to install CP Shipping module and I got confused. I downloaded the file named canada_post_shipping_module_1-3-8c (I think this is the latest one available?!) and came with instrustion doc says "v1.3.7. and I uploaded new files listed but I noticed some of the listed files need to be overwritten.
I just copied the same files yesterday (namely
admin/includes/modules/product/collect_info.php
includes/classes/shopping_cart.php )
in order to upgrade to v.1.3.9 so I am not sure if I can upload the same name and overwrite these files...
Also, other files:
admin/includes/modules/copy_to_confirm.php
admin/includes/modules/update_product.php
admin/includes/modules/product/preview_info.php (if I copy this file, file size will be from 9,501(1.3.9d) to 9,319 (1.3.8c??).
Can I just override to my 1.3.9d files???
Any help for newbie will be greatly appreciated.
Hello Shinmai,Hi there,
I am little confused with installing the CP shipping module...
I have upgraded to ZenCart 1.3.9d (from v1.3.9c) yesterday. I just installed v1.3.9c not long ago and I was just learning how to get around so none of files were customized so I printed out changelog files and simply copied to my site.
Now, I am trying to install CP Shipping module and I got confused. I downloaded the file named canada_post_shipping_module_1-3-8c (I think this is the latest one available?!) and came with instrustion doc says "v1.3.7. and I uploaded new files listed but I noticed some of the listed files need to be overwritten.
I just copied the same files yesterday (namely
admin/includes/modules/product/collect_info.php
includes/classes/shopping_cart.php )
in order to upgrade to v.1.3.9 so I am not sure if I can upload the same name and overwrite these files...
Also, other files:
admin/includes/modules/copy_to_confirm.php
admin/includes/modules/update_product.php
admin/includes/modules/product/preview_info.php (if I copy this file, file size will be from 9,501(1.3.9d) to 9,319 (1.3.8c??).
Can I just override to my 1.3.9d files???
Any help for newbie will be greatly appreciated.
You can overwrite these files. But by doing so. You will not have the benefit of the new updates from 1.3.9d.
Used WinMerge to merge your files. Check here: https://www.zen-cart.com/tutorials/i...hp?article=138
WinMerge: http://winmerge.org/downloads/
Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca
Thanks for the reply and links! Since I am newbie and don't comprehentd PHP files well, it might be beyond my capability to merge the files correctly but I will give it a try
Thanks again.
Well, I tried to look through files and compare but I am just giving up since ...collect_info.php and ...shopping_cart.php in 1.3.9d has less codes than CP mod files and I don't want to blindly erase some codes because I don't know how PHP code works...
I just hope that CP mod will be updated to 1.3.9d very soon - sigh -
For now I will just overwrite CP mod hope I won't running into problems.
Here you go: Beta Canada Post 1.3.9d
Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca
*********************************
Hello Shinmai,
Check attachment for updated files.
*********************************
Updated in v1.3.9d.
------------
Optional
------------
From thread: http://www.zen-cart.com/forum/showthread.php?p=887795
---------------------------------------
Make kgs and cm the default:
---------------------------------------
In the collect_info.php files for that addon you'll see these lines near the top:
----------------------------------------------------------------------------Code://added Canada Post start 'products_weight_type' => '', 'products_dim_type' => '',
Change that to:
Code://added Canada Post start 'products_weight_type' => SYSTEM_WEIGHT_UNITS, 'products_dim_type' => SYSTEM_DIMENSION_UNITS,
----------------------------------------------------------------------------
Already updated in v1.3.9d.
------------
Optional
------------
For those who do not want (1 box(es) to be shipped) to show.
Go to includes/modules/shipping/canadapost.php.
Look for:Change to:Code:'module' => $this->title . ' (' . $this->boxCount . MODULE_SHIPPING_PACKAGING_RESULTS . ')');----------------------------------------------------------------------------Code:'module' => $this->title . ' <!--(' . $this->boxCount . MODULE_SHIPPING_PACKAGING_RESULTS . ')-->');
Updated in v1.3.9d.
----------
Optional
----------
Look for: USA Lettermail: no estimated delivery date
You can change it to anything you like: U.S.A Letter-post, up to 2 weeks
Look for: International Lettermail: no estimated delivery date
You can change it to anything you like: INTL Letter-post, up to 2 weeks
Go to includes/modules/shipping/canadapost.php.
Code:case 'US': { $table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA')); $lettermail_service = "USA Lettermail: no estimated delivery date"; break; } default: { $table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US $lettermail_service = "International Lettermail: no estimated delivery date"; }
Change to:
Code:case 'US': { $table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA')); $lettermail_service = "U.S.A Letter-post, up to 2 weeks"; break; } default: { $table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US $lettermail_service = "INTL Letter-post, up to 2 weeks"; }
Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca