Forums / Addon Shipping Modules / UPS XML Module not passing correct information to admin

UPS XML Module not passing correct information to admin

Views: 3,536

Results 1 to 16 of 16
13 May 2012, 10:54 PM
#1
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

UPS XML Module not passing correct information to admin

I have the UPS XML module set up to show negotiated rates. The rates are showing up correctly, but instead of passing the customer's selected shipping rate such as "UPS Standard" or "UPS 3 Day Select" on to the admin, all orders show as the module description such as "United Parcel Service (1 pkg x 1.60 lbs total)".

This is a problem, because I can't differentiate whether the customer has selected standard or express shipping... Does anyone else have this problem? How could I correct this?

13 May 2012, 11:31 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS XML Module not passing correct information to admin

Edit the file:
/includes/modules/shipping/upsxml.php

Find this code around line 269:

                // END of doing things differently:
                $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + $cost));

and add this code in RED:

                // END of doing things differently:
echo 'I SEE UPS XML: ' . $_type . '<br>';
                $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + $cost));

What do you see?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 May 2012, 11:36 PM
#4
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

Wow. All that did was make the font on the shipping selections page huge. It didn't echo the "I SEE UPS XML"...?

13 May 2012, 11:40 PM
#5
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

Oh, I think this is a superorders issue. I am noticing that it is happening with my other shipping modules also, but it didn't matter, because they don't have separate shipping rates. Ugh. Any clue?

13 May 2012, 11:43 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS XML Module not passing correct information to admin

I do not use that so I am not sure of the problem, however you should have seen the shipping choices for UPS ...

Do you have an URL to your site that we could peek at?

And which UPSXML are you running? I just want to be sure we are using the same one ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 May 2012, 11:44 PM
#7
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

XXXXXXX

UPSXML v 1.3
SuperOrders 3.0.2

13 May 2012, 11:49 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS XML Module not passing correct information to admin

Could you Zip your file:
/includes/modules/shipping/upsxml.php

and post it here as an attachment?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 May 2012, 11:56 PM
#9
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

Here is the UPS XML file I'm using:

Attachment #10462

14 May 2012, 12:14 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS XML Module not passing correct information to admin

Your shipping module code is not breaking things ...

Could you try a couple things ...

1 Switch to Classic Template ... does it fix it?

2 Turn off your SEO/re-writes ... does it fix it?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2012, 12:20 AM
#11
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

Ajeh:

Your shipping module code is not breaking things ...

Could you try a couple things ...

1 Switch to Classic Template ... does it fix it?

2 Turn off your SEO/re-writes ... does it fix it?

Neither change fixes it. Pretty sure it's SuperOrders, but no idea how to fix it. :(

14 May 2012, 12:23 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS XML Module not passing correct information to admin

I do not use Super Orders ... see if you get any response on your other thread ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2012, 12:24 AM
#13
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

Thank you for your help! I'll keep an eye on the SuperOrders thread. I hope that someone can resolve this issue. It's really frustrating! :(

14 May 2012, 10:32 AM
#14
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

I figured it out. I had implemented this change: http://www.zen-cart.com/showthread.php?62999-Table-Rate-Best-Way

Which removed the text in the parentheses.. But the text in the parentheses is what tells you which shipping option was selected in the shipping method. Ugh... So now my shipping descriptions are super long, but the info is there.

Now I would love to figure out how to show just the info in the parentheses instead! LOL

14 May 2012, 11:37 AM
#15
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

Would it be possible to implement THIS CHANGE, but make it conditional so that it DOES show the parentheses for USPS and UPS modules? There must be a way to wrap it in an if statement, but I have no clue what the correct statement would be.

14 May 2012, 11:56 AM
#16
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: UPS XML Module not passing correct information to admin

Edited the code to show ONLY the TEXT_WAY selection:

change the line in:
/includes/modules/pages/checkout_shipping/header_php.php

'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['methods'][0]['title'] . ''),  

But would still like to do this: Add shipping instructions separate from TEXT_WAY