Forums / Addon Shipping Modules / UPS discounted rates not showing in UPS XML

UPS discounted rates not showing in UPS XML

Views: 35,781

Results 41 to 52 of 52
15 Sep 2012, 11:00 AM
#41
abcisme avatar

abcisme

Zen Follower

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

UPS discounted rates not showing in UPS XML

I have discovered that when a customer uses an invalid zip code, instead of giving an error, this module gives a default rate of $11. Does this happen for anyone else?

15 Sep 2012, 12:44 PM
#42
abcisme avatar

abcisme

Zen Follower

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

Re: UPS discounted rates not showing in UPS XML

The regular UPS XML module returns an accurate rate even if the zip code is invalid... I wonder if there is any way to return the published rates instead of the negotiated rates if the postal code is invalid?

25 Jan 2013, 8:53 PM
#43
divinelighting avatar

divinelighting

Zen Follower

Join Date:
Jun 2006
Location:
Atlanta, GA
Posts:
124
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

To remove the weight part of the results, comment out

	        // if (DIMENSIONS_SUPPORTED) {
            //     $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
            // } else {
            //     $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
            // }

http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

27 Jan 2013, 2:23 PM
#44
divinelighting avatar

divinelighting

Zen Follower

Join Date:
Jun 2006
Location:
Atlanta, GA
Posts:
124
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

I have also found that entering an invalid post code will return incorrect postage. For example, 1 oz item to France post code 4650 is $8.50, an order of magnitude off. Really France should have 5 digit post code, but customers often get it wrong. Scary.

http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

30 Jan 2013, 3:31 PM
#45
divinelighting avatar

divinelighting

Zen Follower

Join Date:
Jun 2006
Location:
Atlanta, GA
Posts:
124
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

Would a moderator please delete my post #43. The solution works only in Estimate Shipping. During the checkout, it actually prohibits UPS methods from showing.

http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

30 Jan 2013, 4:07 PM
#46
divinelighting avatar

divinelighting

Zen Follower

Join Date:
Jun 2006
Location:
Atlanta, GA
Posts:
124
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

I think I finally figured out how to remove weight and number of packages:

        if ((is_array($upsQuote)) && (sizeof($upsQuote) > 0)) {
             if (DIMENSIONS_SUPPORTED) {
                 $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
             } else {
                 $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
             }

to

        if ((is_array($upsQuote)) && (sizeof($upsQuote) > 0)) {
             if (DIMENSIONS_SUPPORTED) {
                 $this->quotes = array('id' => $this->code, 'module' => $this->title );
             } else {
                 $this->quotes = array('id' => $this->code, 'module' => $this->title );
             }

http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

10 Feb 2016, 11:02 PM
#47
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

Recently the UPS XML module has had some issues. It's not functioning as it was a month ago which tells me there have been some changes on UPS's end. Anyone else having problems?

10 Feb 2016, 11:07 PM
#48
ajeh avatar

ajeh

Oba-san

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

Re: UPS discounted rates not showing in UPS XML

Could you provide any examples of what is NOT funtion the same as last month?

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!

8 Apr 2016, 6:42 PM
#49
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

From UPS:

Helpdesk response:
We have received reports from customer using the Xpci Version of 1.0001 in their requests intermittently returning a file with only the XML declaration statement.
Please modify your code to use the version as shown in the developer guides:
<XpciVersion>1.0</XpciVersion>
</TransactionReference

8 Apr 2016, 7:03 PM
#50
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

In2Deep:

From UPS:

Helpdesk response:
We have received reports from customer using the Xpci Version of 1.0001 in their requests intermittently returning a file with only the XML declaration statement.
Please modify your code to use the version as shown in the developer guides:
<XpciVersion>1.0</XpciVersion>
</TransactionReference

Published Rates XML Request Example:

<?xml version="1.0"?> <AccessRequest xml:lang="en-US"> <AccessLicenseNumber>Your Access License</AccessLicenseNumber> <UserId>Your User Id</UserId> <Password>Your Password</Password> </AccessRequest> <?xml version="1.0"?> <RatingServiceSelectionRequest xml:lang="en-US"> <Request> <TransactionReference> <CustomerContext>Your Customer Context</CustomerContext> <XpciVersion>1.0</XpciVersion> </TransactionReference> <RequestAction>Rate</RequestAction> <RequestOption>Rate</RequestOption> </Request> <Shipment> <Shipper> <Name>Shipper Name</Name> <AttentionName>Shipper Attention Name</AttentionName> <PhoneNumber>1234567890</PhoneNumber> <FaxNumber>1234567890</FaxNumber> <ShipperNumber>Your Shipper Number</ShipperNumber> <Address> <AddressLine1>Address Line 1</AddressLine1> <City>City</City> <StateProvinceCode>StateProvinceCode</StateProvinceCode> <PostalCode>PostalCode</PostalCode> <CountryCode>CountryCode</CountryCode> </Address> </Shipper> <ShipTo> <CompanyName>Ship To Company Name</CompanyName> <AttentionName>Ship To Attention Name</AttentionName> <PhoneNumber>1234567890</PhoneNumber> <FaxNumber>1234567890</FaxNumber> <Address> <AddressLine1>Address Line 1</AddressLine1> <City>City</City> <StateProvinceCode>StateProvinceCode</StateProvinceCode> <PostalCode>PostalCode</PostalCode> <CountryCode>CountryCode</CountryCode> </Address> </ShipTo> <ShipFrom> <CompanyName>Ship From Company Name</CompanyName> <AttentionName>Ship From Attention Name</AttentionName> <PhoneNumber>1234567890</PhoneNumber> <FaxNumber>1234567890</FaxNumber> <Address> <AddressLine1>Address Line 1</AddressLine1> <City>City</City> <StateProvinceCode>StateProvinceCode</StateProvinceCode> <PostalCode>PostalCode</PostalCode> <CountryCode>CountryCode</CountryCode> </Address> </ShipFrom> <PaymentInformation> <Prepaid> <BillShipper> <AccountNumber>Your Account Number</AccountNumber> </BillShipper> </Prepaid> </PaymentInformation> <Service> <Code>59</Code> <Description>2nd Day Air AM</Description> </Service> <Package> <PackagingType> <Code>02</Code> <Description>UPS Package</Description> </PackagingType> <PackageWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>5</Weight> </PackageWeight> <Dimensions> <Length>10</Length> <Width>5</Width> <Height>7</Height> </Dimensions> </Package> </Shipment> </RatingServiceSelectionRequest>

There is also a Published Rates XML Response Example and a Published Rates XML Response Example and a Negotiated Rates XML Response Example

26 Jun 2016, 1:30 PM
#51
northfur avatar

northfur

New Zenner

Join Date:
Jan 2015
Location:
On, Canada
Posts:
40
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

Have there been any updated fixes to this module to allow it to return a discounted rate?
The first few pages are from 2009 and I'm unsure if they'd work with the latest version of this module from 2014.

I'm trying to set this up as a replacement to Canada Post for the potential strike/lockout on July 2nd.

It seems to be working and returning standard rates, but I cannot get either this module to return a discounted 20% off rate based on a discount applied to my UPS account, or find any settings on UPS's end to force the discount. It's almost like there's a field missing in this module to pass along a UPS account number along with the username, password and key.

Any ideas of what I can try? I also wanted to set up a flat 5$ discount, simply by using the handling fee field, entering -5 seems to work, so I don't think the fix proposed earlier in this thread would work as it'd end up multiplying my discount.

27 Jun 2016, 2:52 PM
#52
northfur avatar

northfur

New Zenner

Join Date:
Jan 2015
Location:
On, Canada
Posts:
40
Plugin Contributions:
0

Re: UPS discounted rates not showing in UPS XML

I've tried the solution file posted on page two and my cart won't return any UPS rates. I also tried using a difference checking tool going line-by-line and simply adding the few lines of code into the 2014 version of the upsxml file from that solution on page two and it also didn't return any rates.

Not sure what else to try at this point to get it to work.