![]() |
Here you go...
Code:
Environment components info: |
Quote:
Just guessing here... |
Just tried on 3.5.9 with no success.
I'm using Canada Post RealTime Shipping here. :( I expanded the text field to 6 digits (characters) in the php file and the template, but basically this doesn't work so good for me. |
Rackit,
I think I may have tracked down why this is not working for Fedex or Canada Post. Mod_UPS calls for Code:
$dst_country_code=$userinfo["s_country"]; Mod_CPC (Canada Post Corporation) requires Code:
$cp_dest_country = $userinfo["s_country"]; I believe that the Canada Post server validates the Postal code with the province (state). Mod_Fedex asks for a whole bunch of stuff which is probably beyond keeping this estimator simple. Code:
# do all these queries only if FedEx is present. So because I am concerned with Mod_CPC (Canada Post) I need to add the province (state) data to the information sent by the shipping estimator. I can either 1. Let the customer choose there province from a drop down (in addition to the postal code entry) 2. Have the postal code look-up in PHP for the correct province (state) info. Canadian Postal Codes work like this Letter-Number-Letter<space>Number-Letter-Number ie. R7N 2G6 A1N 9D9 N7X 4J0 The first character a letter dictates which province the postal code is for. List for lookup in PHP purposes. Newfoundland/Labrador - "A" Nova Scotia - "B" Prince Edward Island - "C" New Brunswick - "E" Quebec - "G", "H", "J" Ontario - "K", "L", "M", "N", "P" Manitoba - "R" Saskatchewan - "S" Alberta - "T" British Columbia - "V" Northwest and Nunavut Territories - "X" Yukon Territory - "Y" I could use some help and would be happy to donate or something. I can guarantee that an ENTIRE nation of X-Cart users would be very excited and grateful to have this mod. ;) |
I'd also be delighted to donate for the time it takes to tinker the code to work with FedEx lookup!
|
Is this dead, because I only need a little help with the PHP to add a Canadian Postal Province (state) drop down and have it submit with the postal code.
It's worth some money to me if anyone is listening... |
which parts exactly do you need help with?
|
IN my second to last post (before this one)i chronicled how Canada Post needs one more piece of info over UPS. I need the state.
I think the easiest way is to use a drop down. I am good at Smarty but lousy at PHP. I have no idea how to get started. |
BUMP
|
Can't get this modification to work in 3.5.10
I can't get the zip code calculation to show up in 3.5.10 Can anyone tell me exactly where in the cart_totals.tpl I should insert the code? Thank you very much.
|
All times are GMT -8. The time now is 01:36 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.