Zen Cart Logo
Forums / Addon Shipping Modules / Weird error in UPSXML module

Weird error in UPSXML module

Locked

Views: 2,193

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
26 Mar 2008, 9:12 PM
#1
0be1 avatar

0be1

Totally Zenned

Join Date:
Sep 2004
Location:
Murfreesboro, TN
Posts:
479
Plugin Contributions:
0

Weird error in UPSXML module

I was receiving the following error upon adding something to my shopping cart ( I truncated the error for space saving purposes):

<!-- function update_zone(theForm) { // if there is no zone_id field to update, or if it is hidden from display, then exit performing no updates if (!theForm || !theForm.elements["zone_id"]) return; if (theForm.zone_id.type == "hidden") return; // set initial values var SelectedCountry = theForm.zone_country_id.options[theForm.zone_country_id.selectedIndex].value; var SelectedZone = theForm.elements["zone_id"].value; // reset the array of pulldown options so it can be repopulated var NumState = theForm.zone_id.options.length; while(NumState > 0) { NumState -= 1; theForm.zone_id.options[NumState] = null; } // build dynamic list of countries/zones for pulldown if (SelectedCountry == "14") { theForm.zone_id.options[0] = new Option("Please select ...", ""); theForm.zone_id.options[1] = new Option("Burgenland", "102"); theForm.zone_id.options[2] = new Option("Niedersterreich", "96"); theForm.zone_id.options[3] = new Option("Obersterreich", "97"); theForm.zone_id.options[4] = new Option("Salzburg", "98"); theForm.zone_id.options[5] = new Option("Steiermark", "100"); theForm.zone_id.options[6] = new Option("Tirol", "101");

The error itself is quite long. I finally tracked down how I am getting the error, I just do not know how to fix. If I disable the UPSXML mod, this error goes away. However this mod is very important to us as 99% of what we ship is UPS, we have a daily pickup and own UPS account number assigned to us. Can charge residential rates (too bad it cannot be determined per customer).

Has anyone else experienced this problem with this module, and if so, how did you fix it please. I cannot find any resolution in the forums.

tia...

0be1

28 Mar 2008, 1:03 AM
#2
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Weird error in UPSXML module

The data provided by following step 5 in the readme.txt is really what is needed. To see if data being returned by UPS has any errors. Removed any private or personal data from the log and then post it.
We will go from there.

28 Mar 2008, 4:18 PM
#3
0be1 avatar

0be1

Totally Zenned

Join Date:
Sep 2004
Location:
Murfreesboro, TN
Posts:
479
Plugin Contributions:
0

Re: Weird error in UPSXML module

I cannot even get logging to work for some reason. The first time nothing happened. Then I got a failed to find path, stream error, blah blah blah

Then the transaction went through fine but did not write to the log file (yes it is set to 777 :D ). I have tried different paths to the file, different file names upsxml.txt instead of log. Oh well, maybe I'll get back to it later this weekend.

btw, when both ups modules are on at the same time why are the rates different? I hope by using upsxml that it would not be showing the customer our published rate vs the rate they should be paying (in other words their charged rate vs our qty discount rate.)

Thanks...

0be1