Jump to content
torinwalker

New UPS XML Shipping Module available

Recommended Posts

I think so. This is what I did so I am guessing that it was correct, the line numbers did not match up

 

It says to do this:

In catalog/includes/modules/shipping/upsxml.php (about line 291) Find the key MODULE_SHIPPING_UPSXML_TYPES and remove at least 2 of the shipping methods listed there to reduce the field to less than 255 characters.

 

Actual code before changes:

tep_db_query("insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Shipping Methods', 'MODULE_SHIPPING_UPSXML_TYPES', '2nd Day Air, Ground, Standard, 3 Day Select', 'Select the UPS services to be offered.', '6', '20', 'tep_cfg_select_multioption(array(\'2nd Day Air\', \'Ground\', \'Standard\', \'3 Day Select\', \'Next Day Air Saver\', \'Next Day Air Early A.M.\', \'Worldwide Express Plus\', \'2nd Day Air A.M.\', \'Express NA1\', \'Express Saver\'), ',  now())");

 

I guess I was supposed to edit that line.

 

I just reinstalled this with the changes to the configuration table instead and it seems to be working now.


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

Ok, when editing this in Admin, it is asking for the

UPS Rates Access Key

Username

Password

 

I do have an account, but they did not give me a UPS Rates Access Key. Where do I get that?


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

Also, I do not know if the cause of my errors are from leaving the access key field blank or not, but when you checkout and get to the shipping options page, it states this where it is suppose to list the UPS shipping options...

 

10002: The XML document is well formed but the document is not valid

If you prefer to use ups as your shipping method, please contact Pop-the-top Trading Post via Email.

 

What is that?


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

Some questions....

 

This module works for shops that they send ships from Spain? Is it neccesary to have a password to develop UPS. If it is like that how long does it take to get it?

 

Lastely I have installed this module and I get this mistake on test mode

 

What could it be?

 

Fatal error: Maximum execution time of 30 seconds exceeded in modules\shipping\upsxml.php on line 592

Share this post


Link to post
Share on other sites

Hi There,

 

I seem to be having a number of problems with the packaging / dimension support for UPS XML. My main problem has to do with the weight.

 

I have a certain product of 50 lbs. If I add this item to my shopping cart, everything looks good, I have a quote for 1 package @ 51 lbs total (50 + 1 for the packaging). But now if I add another one of these to my cart, I now have a quote for 2 packages @ 52 lbs total, this continues if I add more packages it just increases the total weight by 1. This is a "Ready to ship item"

 

I have a few packages setup in the tools, and have all of the proper fields added to the database for the dimension support.

 

Is anyone else experiencing this issue ?


------------------------

Chief Web Developer

http://Canfone.com

https://SecureLogoHosting.com

Share this post


Link to post
Share on other sites

Hi friends

 

the install seemed to works ok, but now i am testing and when i get to the shipping page i am receiving the following error:

 

Rating and Service 1.0001 0 MODULE_SHIPPING_UPSXML_RATES_TEXT_COMM_UNKNWON_ERROR : Rating and Service 1.0001 0 MODULE_SHIPPING_UPSXML_RATES_TEXT_COMM_UNKNWON_ERROR

 

I do have a valid access key

 

What can I do?

 

Thanks

Share this post


Link to post
Share on other sites

Yes I look. I have UPSXML 1.1.1 and the path v2. Later I?ve included the modify of your post (Nov 16 2004). Same error. i think that the problem is with https://wwwcie.ups.com:443/ups.app/xml/Rate because UPS RESPONSE is empty

 

------------------------------------------

UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit

UPS REQUEST: <?xml version="1.0"?>

<AccessRequest xml:lang="en-US">

<AccessLicenseNumber>8BCxxxxxxxxx</AccessLicenseNumber>

<UserId>CARxxxxL</UserId>

<Password>93xxxxx</Password>

</AccessRequest>

<?xml version="1.0"?>

<TimeInTransitRequest xml:lang="en-US">

<Request>

<TransactionReference>

<CustomerContext>Time in Transit</CustomerContext>

<XpciVersion>1.0001</XpciVersion>

</TransactionReference>

<RequestAction>TimeInTransit</RequestAction>

</Request>

<TransitFrom>

<AddressArtifactFormat>

<PoliticalDivision2>Madrid</PoliticalDivision2>

<PoliticalDivision1>Madrid</PoliticalDivision1>

<CountryCode>ES</CountryCode>

<PostcodePrimaryLow>28001</PostcodePrimaryLow>

</AddressArtifactFormat>

</TransitFrom>

<TransitTo>

<AddressArtifactFormat>

<PoliticalDivision2>Salamanca</PoliticalDivision2>

<PoliticalDivision1>Salamanca</PoliticalDivision1>

<CountryCode>ES</CountryCode>

<PostcodePrimaryLow>37001</PostcodePrimaryLow>

<PostcodePrimaryHigh>37001</PostcodePrimaryHigh>

</AddressArtifactFormat>

</TransitTo>

<PickupDate>20041124</PickupDate>

<ShipmentWeight>

<UnitOfMeasurement>

<Code>KGS</Code>

</UnitOfMeasurement>

<Weight>10</Weight>

</ShipmentWeight>

<InvoiceLineTotal>

<CurrencyCode>USD</CurrencyCode>

<MonetaryValue>100</MonetaryValue>

</InvoiceLineTotal>

</TimeInTransitRequest>

 

UPS RESPONSE:

------------------------------------------

Time in Transit: 0

------------------------------------------

UPS URL: https://wwwcie.ups.com:443/ups.app/xml/Rate

UPS REQUEST: <?xml version="1.0"?>

<AccessRequest xml:lang="en-US">

<AccessLicenseNumber>8BCxxxxxxx</AccessLicenseNumber>

<UserId>CARxxxxx</UserId>

<Password>93xxx</Password>

</AccessRequest>

<?xml version="1.0"?>

<RatingServiceSelectionRequest xml:lang="en-US">

<Request>

<TransactionReference>

<CustomerContext>Rating and Service</CustomerContext>

<XpciVersion>1.0001</XpciVersion>

</TransactionReference>

<RequestAction>Rate</RequestAction>

<RequestOption>shop</RequestOption>

</Request>

<PickupType>

<Code>01</Code>

</PickupType>

<Shipment>

<Shipper>

<Address>

<City>Madrid</City>

<StateProvinceCode>Madrid</StateProvinceCode>

<CountryCode>ES</CountryCode>

<PostalCode>28001</PostalCode>

</Address>

</Shipper>

<ShipTo>

<Address>

<City>Salamanca</City>

<StateProvinceCode>Salamanca</StateProvinceCode>

<CountryCode>ES</CountryCode>

<PostalCode>37001</PostalCode>

<ResidentialAddressIndicator/>

</Address>

</ShipTo>

<Package>

<PackagingType>

<Code>02</Code>

</PackagingType>

<PackageWeight>

<UnitOfMeasurement>

<Code>KGS</Code>

</UnitOfMeasurement>

<Weight>37.8</Weight>

</PackageWeight>

</Package>

<Package>

<PackagingType>

<Code>02</Code>

</PackagingType>

<PackageWeight>

<UnitOfMeasurement>

<Code>KGS</Code>

</UnitOfMeasurement>

<Weight>37.8</Weight>

</PackageWeight>

</Package>

<Package>

<PackagingType>

<Code>02</Code>

</PackagingType>

<PackageWeight>

<UnitOfMeasurement>

<Code>KGS</Code>

</UnitOfMeasurement>

<Weight>37.8</Weight>

</PackageWeight>

</Package>

</Shipment>

<CustomerClassification>

<Code>01</Code>

</CustomerClassification>

</RatingServiceSelectionRequest>

 

UPS RESPONSE:

Share this post


Link to post
Share on other sites

Anyone have any idea why I'd be getting this error all of a sudden?

 

Fatal error: Call to undefined function: curl_init() in /***/public_html/shop/includes/modules/shipping/upsxml.php on line 606

Edited by eTron

Share this post


Link to post
Share on other sites

Still getting this though from time to time.

 

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway : Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway

 

UPS says everything is fine on their end and I dont change anything on mine, but its intermitent.

Share this post


Link to post
Share on other sites

Paco,

 

Personally, I have no clue why there is no response from UPS. Do you use the "test" environment or the "production" (switchable in the admin section). Perhaps that helps.

Otherwise get in touch with UPS, perhaps things are different for shippers addresses in the US versus the rest of the world.

Share this post


Link to post
Share on other sites

Thanks Jan;

 

I get it works ok but v.1.1.1 without patch.

I explain. If I copy v2 patch and modifications that yoy explain to Ekko, can see transit time, (arrive day)

 

United Parcel Service (XML) (2 pkg(s) x 34.1 kgs total)

UPS Standard, 2004-11-26 $30.01

 

but when I push continue, reload checkout_shipping php again (always) instead of checkout_payment?

 

Anyhave idea?

 

Thanks for your help.

Share this post


Link to post
Share on other sites
Still getting this though from time to time.

 

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway : Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway

 

UPS says everything is fine on their end and I dont change anything on mine, but its intermitent.

 

This is the same response I get everytime. I have never once got this to work correctly. I have given up on this contribution for now...it just doesn't work!

Share this post


Link to post
Share on other sites

Hello All,

 

I installed the upsxml module, and everything works, but not completly.

 

I'm based in Europe, and when I'm doint a test for example with Slovakia country, evrything work correctly. I have the choice between UPS Express Saver of UPS Standard.

 

Anyway, if I use Taiwan country for my test, I have no choice possible. I cant continue with my process. I had a look in the log and I got a good reply from UPS.

 

Do you have an idea why I can't have a choice ?

 

Best regards,

 

Gregory

Share this post


Link to post
Share on other sites

Someone has to be able to figure this out. 1/2 the ppl can't use this MOD. Could it have anything to do with what version of CURL we are using?

Share this post


Link to post
Share on other sites
Fatal error: Call to a member function on a non-object in /home/XXXXX/public_html/catalog/includes/classes/xmldocument.php on line 57

happened when I hit refresh at one point to update the page, and once when I deleted some stuff from my cart and went back to checkout.

 

did you guys figure this one out yet? Ive read all the past posts.......but it seems ya fixed a couple issues and im not sure which is the fix to my problem :)

 

will installing the new contribution fix everything? If so.....since I already have the old one installed, is there just one file I need to replace or is it recommended to just totally install the new cont. Thanks!

Share this post


Link to post
Share on other sites
Someone has to be able to figure this out. 1/2 the ppl can't use this MOD. Could it have anything to do with what version of CURL we are using?

Did you try adding the two lines to the CURL calls as I mentioned in post 223 on page 12?

Share this post


Link to post
Share on other sites

Sorry for my insistence.

 

UPSXML V.1.1.1 and Transit Time patch V2 + Janz Modificatoins.

 

It seem that works but when I push continue..... Ohhh checkout_shipping reload itself instead of checkuot_payment

 

Help please.

Share this post


Link to post
Share on other sites

Stupid question, but did you select a shipping option? It happens when you don't choose anything, therefore my question...

Share this post


Link to post
Share on other sites

Help please!!

 

Checkout shipping;

 

I choose this option;

 

United Parcel Service (XML) (2 pkg(s) x 32.45 kgs total)

UPS Standard, 2004-11-29 $28.50

 

continue... then obtain again checkout_shippin instead oof checkout payment and change the price

 

United Parcel Service (XML) (2 pkg(s) x 32.45 kgs total)

UPS Standard, 2004-11-29 $45.60

 

 

Module with Dimensions not suported

Share this post


Link to post
Share on other sites

Help please!!

 

Checkout shipping;

 

I choose this option;

 

United Parcel Service (XML) (2 pkg(s) x 32.45 kgs total)

UPS Standard, 2004-11-29 $28.50

 

continue... then obtain again checkout_shippin instead oof checkout payment and change the price

 

United Parcel Service (XML) (2 pkg(s) x 32.45 kgs total)

UPS Standard, 2004-11-29 $45.60

 

 

Module with Dimensions not suported

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×