Jump to content

How Do I Configure the UPS Module [1.4.0.10]


Recommended Posts

I know it's an alpha release and a new module, but does anyone have any guidance on how to configure the UPS module in version 1.4.0.4? I have signed up with UPS, and I have a "MyUPS" ID and API key. What is the difference between the "MyUPS" ID and the UPS Login? Does it need the account number somewhere in the configuration?

I thought I had it all configured correctly, but when I "submit query" I get

Prestashop could not connect to UPS webservice, check your API Key



Thanks in advance for any assistance on this

35213_yOc2KZSQ9M2q2FVTXT3M_t

Link to comment
Share on other sites

I'll second that. I was just about to post the same question and I figured I should search first.

Lesson to forum newbs: search before post :)

Seriously though, I went through the same process and I have a bit of a twist. I'm in Canada.

What location are you in?

Link to comment
Share on other sites

I haven't figured it out yet.

UPS thinks I'm nuts, so thats always helpful.

I have tried various combinations of API, MyUPS ID, account number, etc. with no luck. UPS told me to 'Go read the API documentation'. I have read alot of it and it doesn't have any answers yet.

Has anyone else gotten this to work??

Link to comment
Share on other sites

  • 2 weeks later...

In the bug thread #6816, Fabien respnded:

I did not describe very well the input, I will in the next version.
Your login and your password are the one you fill when you subscribe to UPS. MyUps ID is your UPS account number, you received it by Email.
However, I tried using my account number for the MyUPS ID and still get the same error. You may want to try it yourself.
Link to comment
Share on other sites

PrestoChangeo module works with the same coordinates the beta version's UPS module does not. SO it's not a API KEY issue.

To answer to robinWilliams's uncertanity

Your UPS Login : your UPS website login that looks like whatever you decided to put there
Your MyUps ID : it your UPS Account Number that looks like a random string of leters and numbers - all in caps.

Looking forward to see thie issue solved.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Awesome! I got the UPS module to connect with my login and API key. So now what? How do I get the rates to calculate during the checkout process? Has anyone gotten the UPS module configured and setup carriers to get rates? I could use some guidance...just a nudge to get going in the right direction.

Link to comment
Share on other sites

This is quite the adventure. I finally have communication between my shop and UPS, I have a test customer that can add items to a cart and is presented with UPS shipping options at checkout. So, here is the next hurdle.

The prices cannot be right. They are way too low. My test customer has 2.0 lbs worth of items being shipped from US zip code 85027 (AZ) to US zip code 95131 (CA). The UPS Ground quote through the module is $8.35 and should include my $2 handling (which I don't think it does). When I go to myups.com and put in the same specs, the quote I get is for $12.01.

For Next Day Air, the PrestaShop module quotes $42.78 while myups.com quotes me $47.25. Anybody out there have any ideas? Has anyone found the PrestoChangeo module to be more accurate?

Link to comment
Share on other sites

Hi,

There is a demo front and back end for the module, which you can try for yourself and see the rates you get.

I am going to have a new versions soon which will support multiple packages (and automatically calculate how many boxes are needed for the products in the cart) as well as a few other options.

If you want to see and help test the new version, just send me a PM or email.

Link to comment
Share on other sites

What a breakthrough! I found out how to get Residential rates from the PrestaShop UPS Module after reviewing the "Rating Package XML Developers Guide" from UPS (in their Developers API section). I edited the /modules/upscarrier/xml.tpl and added the following code to the RatingServiceSelectionRequest/Shipment/ShipTo/Address xpath:

<?xml version="1.0" ?>

   ...

     ...


         ...
   <!-- Add this line -->

       ...

     ...

   ...



I'm not sure if it made a difference or not, but I also added an element for CustomerClassification in order to get "Rates Associated with Shipper Number." The element needs to be added in the RatingServiceSelectionRequest xpath:

<?xml version="1.0" ?>

   ...
   <!-- Add these 3 lines -->
00

   ...



The UPS Ground amount is still $1.00 or so short of what UPS is quoting me, but the other values were spot on. Definite progress. My handling rate doesn't seem to get included though. Sigh, off to do more testing.

Link to comment
Share on other sites

Arrgg. 1 step forward and 2 back. PrestaShop isn't multiplying the product weight by the number ordered (e.g. 1 x 1 lb. object or 3 x 1 lb. objects still calculates as 1 lb. for shipping) and it is calculating separate shipping for each item in the cart (e.g. 1 object is $11.94 for ground and a second object makes the shipping total $23.88).

Link to comment
Share on other sites

  • 1 month later...
Arrgg. 1 step forward and 2 back. PrestaShop isn't multiplying the product weight by the number ordered (e.g. 1 x 1 lb. object or 3 x 1 lb. objects still calculates as 1 lb. for shipping) and it is calculating separate shipping for each item in the cart (e.g. 1 object is $11.94 for ground and a second object makes the shipping total $23.88).


Yeah... I wish they fix that soon. There is a post within "report bug" shown as fixed/complete, but the problem is still there at version 1.4.0.15


any one has a personal fix for it, please share
Link to comment
Share on other sites

  • 4 weeks later...
Arrgg. 1 step forward and 2 back. PrestaShop isn't multiplying the product weight by the number ordered (e.g. 1 x 1 lb. object or 3 x 1 lb. objects still calculates as 1 lb. for shipping) and it is calculating separate shipping for each item in the cart (e.g. 1 object is $11.94 for ground and a second object makes the shipping total $23.88).


Yeah... I wish they fix that soon. There is a post within "report bug" shown as fixed/complete, but the problem is still there at version 1.4.0.15

any one has a personal fix for it, please share


OK, I hope this helps someone. This is for if you know you're calculating based on weight. It groups all the products into one package versus multiple as it currently works.

In modules/upscarrier/upscarrier.php find

// Getting shipping cost for each product



Just above it, add

// Init package list
$wsParams['package_list'] = array(
   array( 'width' => 1, 'height' => 1, 'depth' => 1, 'weight' => 0, 'packaging_type' => ($config['packaging_type_code'] ? $config['packaging_type_code'] : Configuration::get('UPS_CARRIER_PACKAGING_TYPE')) )
);



Then, find

$wsParams['package_list'][] = array(
   'width' => ($product['width'] ? $product['width'] : 1),
   'height' => ($product['height'] ? $product['height'] : 1),
   'depth' => ($product['depth'] ? $product['depth'] : 1),
   'weight' => ($product['weight'] ? $product['weight'] : 1),
   'packaging_type' => ($config['packaging_type_code'] ? $config['packaging_type_code'] : Configuration::get('UPS_CARRIER_PACKAGING_TYPE')),
);



and replace it with

$wsParams['package_list'][0]['weight'] += ($product['weight'] ? $product['weight'] : 1);



Note: If you already have stuff in your cart, you may need to add another product to force a call to UPS and see a difference.

Link to comment
Share on other sites

  • 1 month later...

Ok I am currently trying to configure the module.

Well i got my account numbers and such only i get this when i click on save :
Fatal error (Carrier->delay is empty for default language.)

Where is it located and better what is causing it?

Hope someone is brighter than I am :S

Link to comment
Share on other sites

Found the solution..

Just made a comment of line 85,

public function getTranslationsFieldsChild()
{
//parent::validateFieldsLang();
return parent::getTranslationsFields(array('delay'));

that did the trick ;)

seems sth is wrong with validating language, what I don't know yet, but the weird error i got left the building :)

Thanks for ur time anyway.. very happy to have such a quick response..

Now I can configure the thing..

Btw. Is there a way to import a list of price ranges?

Link to comment
Share on other sites

  • 4 months later...

Found the solution..

Just made a comment of line 85,

public function getTranslationsFieldsChild()

{

//parent::validateFieldsLang();

return parent::getTranslationsFields(array('delay'));

that did the trick ;)

seems sth is wrong with validating language, what I don't know yet, but the weird error i got left the building :)

Thanks for ur time anyway.. very happy to have such a quick response..

Now I can configure the thing..

Btw. Is there a way to import a list of price ranges?

 

sorry, where this file??

Link to comment
Share on other sites

  • 2 years later...

Your UPS Login : your UPS website login that looks like whatever you decided to put there

Your MyUps ID : it your UPS Account Number that looks like a random string of leters and numbers - all in caps.

Best description out there -- even better than UPS documentation.

Questions:  So UPS account number is identical to MyUps ID?

Link to comment
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
×
×
  • Create New...