One of the more popular shipping carriers around the globe is United Parcel Service, also known as UPS. Below is a set of instructions to help you install and set up the UPS carrier module for your PrestaShop 1.5 store.

Configuring the UPS carrier module in PrestaShop 1.5.

  1. Log into your PrestaShop 1.5 dashboard.
  2. Using the top menu bar, hover over the Modules tab and click on the Modules option from the menu.
  3. You are now on the Modules list screen. On the left hand sidebar is a list of different module categories. Clicking a desired category will filter the modules seen on the right hand panel. You will want to find and click the one entitled Shipping and Logistics. Scroll down the list of modules on the right hand side until you find the UPSCarrier module.
    select-category
  4. Click on the Install button to the right side of the module description to perform the basic install of the module.
    install-UPScarrier
  5. Once the module is installed, you will want to click on the Configure link to continue setting up the details for the module.
    ups-install-configure
    1. You are now brought to the configuration screen. There are several fields you will want to consider to set up your USPS carrier module:
      Your UPS Login If you do not have a UPS account ID, visit https://www.ups.com/upsdeveloperkit?loc=en_SG to get one.
      Your UPS Password Your UPS Account password.
      Your MyUps ID Your MYUps account ID.
      Your UPS API Key Authetication key for your UPS account.
      Packaging Weight Weight of packing materials.
      Handling Fee Amount of handling fee.
      Weight unit Default weight unit of your store (kg or lb)
      Dimension Unit Default measuring unit of your store (cm or in)
      Your address line 1 First line of your shipping origination address.
      Your address line 2 Second line of your shipping origination address.
      Zip / Postal Code Local ZIP code of the shipping origination address.
      Your City City of the shipping origination address.
      Country Country of the shipping origination address.
      State State of the shipping origination address.
      Rate service group Selected from the dropdown, must coincide with Country and State fields.
      Pickup Type Choose the type of pickup you prefer from the dropdown.
      Packaging Type Default packaging type when none is described in product configuration.
      Calcul mode Whether your items are all in one package or each in a separate package.

       To continue to the second and third tabs, you must be subscribed to UPS. The breakdown of tabs two and three are as follows:

      Tab 2. Categories Settings
      This section allows you to define a specific UPS configuration for each product category (such as Packaging Type and Additional charges).

      Tab 3. Products Settings
       This section allows you to define a specific UPS configuration for each product (such as Packaging Type and Additional charges).

    2. Click on the Configure button on each step to save your settings. Below is a sample of how the user interface will appear with the UPS carrier module installed.
      ups-after
       
Continued Education in Course 203: Working with Modules in PrestaShop 1.5
You are viewing Section 7: How to install and set up the UPS Carrier module in PrestaShop 1.5
Section 6: How to install and set up the FedEx Carrier module in PrestaShop 1.5
Section 8: How to add a Pinterest button to a product in PrestaShop 1.5
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

n/a Points
2014-02-26 9:09 pm

Hello Scott,

This article is pretty now now, but I can't figure out how to install and configure my UPS Prestahop module. I wtill get the same error message from my Prestashop 1.5.6.2 backoffice:

Unable to connect to UPS webservices: Error 10001 : The XML document is not well formed

Is the UPS Login (first field) and the MyUPS ID the same thing?! I have a full UPS account that is working but I only have a UPS USer ID, a password and an API key...

Thank you very much for your help.

Eric

 

Staff
8,314 Points
2014-02-27 8:46 am
Your user ID is indeed your My UPS login username. I have seen individuals with the same error on the PrestaShop forums as well as other forums with the same issue and many of them have had luck with getting a new key from UPS. It seems that it may be a bug from within their systems.
n/a Points
2014-03-13 7:42 am

Where from can we get the UPS Carrier module? There is no UPS Carrier module in our Prestashop 1.5.4.1  dashboard.

Thanks,

Alex

Staff
8,314 Points
2014-03-13 8:29 am
Be sure that within your Prestashop dashboard, that you are showing both installed and not installed modules in the dropdown up top.
n/a Points
2014-03-13 8:40 am

I installed fresh Prestashop ver. 1.5.6, both installed and not installed are showing but UPS module does not appear. That module is available only your hosting website site or any prestashop installation?

Staff
8,314 Points
2014-03-13 8:49 am
This will be available on any Prestashop installation, regardless of your host. I currently also see it within my installation perfectly fine. You should see it when clicking on the Shipping and Logistics menu item to the left. Be sure that you do not have anything within the search field as this could produce unexpected results.
n/a Points
2014-03-13 9:34 am

Thank you. I solved that issue. I set up localization to United States and UPS module became visible.

Kindest regards,

Alex

n/a Points
2014-05-01 12:01 pm

I have this module installed and working but I'm not getting a list of products on the Product Settings screen. Categories show up fine on Category Settings, just no products. Hopefully I'm missing something simple?

Staff
18,017 Points
2014-05-01 4:47 pm
Hello Trevor,

I confirmed the error you are having with the module on our test server. We installed a fresh 1.5.6.2 version and then installed the upscarrier module. When going to the Category Settings we noticed the list of categories. However, when we went to the Product Settings there was just a blank dropdown. Oddly enough, the dropdown had the same amount of blank rows as we had products.

We discovered the Select statement to fill the dropdown had a mistake in it. In our situation the code with the error was:

SELECT pl.* FROM `'._DB_PREFIX_.'product` p

LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product` AND pl.`id_lang` = 2'.(version_compare(_PS_VERSION_, '1.5.0') >= 0 ? ' '.$this->context->shop->addSqlRestrictionOnLang('pl') : '').')

WHERE p.`active` = 1

ORDER BY pl.`name`');


The LEFT JOIN statement is the one with the error. The incorrect portion of the statement is:
AND pl.`id_lang` = 2

The id_lang for our fresh database had nothing with id_lang of 2. Our product table had all products set to id_lang of 1 and our product_lang table only had English in it,which was id_lang of 1. There was no 2.

We noticed the category table populated properly so we checked to see how it got the language id. After stealing the code from the category function we replaced the LEFT join line with the following:

LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product` AND pl.`id_lang` = '.$this->context->language->id.(version_compare(_PS_VERSION_, '1.5.0') >= 0 ? ' '.$this->context->shop->addSqlRestrictionOnLang('pl') : '').')

This corrected the issue and products are now displaying in the dropdown.

The file that needs to be corrected is upscarrier.php which is found in the modules/upscarrier folder. The line that needs to be replaced should be line 1180. It is the line that has the LEFT join.

Please let us know if this helps. If you happen to be an InMotion customer and wish for me to make this line change for you, simply reply to this comment with your domain name. (it will remain unapproved and hidden and I can delete it after if you wish).

Kindest Regards,
Scott M
n/a Points
2014-06-07 2:32 am

I am using UPS carrier module.I set free shipping start limit and when total amount exceeds limit amount then on checkout all carrier show with free shipping but when total amount is less than limit amount then no carrier show other than my test carrier. Plz help me!!

Staff
18,017 Points
2014-06-09 2:17 pm
Hello Atul,

I am a bit confused by the question. I am not able to duplicate this with my test version. Do you have any other modules installed as well? If you are an InMotion Hosting and do not mind providing your domain name I can take a look at your specific site and email you privately if additional help is needed.

Kindest Regards,
Scott M

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

11 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!