Difference between revisions of "X-Cart:UPS Developer Kit"

From X-Cart 4 Classic
Jump to: navigation, search
(I've received a message from UPS notifying me on SSLv changes)
Line 129: Line 129:
Solution: upgrade your X-Cart up to the 4.1.12 version.
Solution: upgrade your X-Cart up to the 4.1.12 version.
===I've received a message from UPS notifying me on SSLv changes===
{{XC version|version=4.2.2|comment=or lower}}
''May 19 2009 UPS is moving from Unchained Digital Certificates to Chained Digital Certificates. Therefore, we will disable SSLv2 on all our UPS OnLine Tool servers. We have identified a few of your customers as uploading via SSLv2. We believe on May 19 2009 these customers' connection will break.
We require your assistance in informing your customers about this upcoming change.
To find out if your customer's or your system supports SSL Version 3.0 please connect to our Customer Integration Environment (CIE). The CIE has already been migrated to chained certificates. Please refer to the developer's guide for the Tool(s) you are using for the correct CIE connection URL.
Again I want to iterate that if your customers are not able to connect via SSLv3 by May 19, 2009 their connection for the UPS OnLine Tools will break!
Thank you.''
X-Cart 4.3 has support for SSLv3 communication with UPS Online Tools out of the box.
X-Cart v4.x doesn't force the SSLv3 connection out of the box. So, if you use UPS Online Tools and your server uses SSL2 connections by default, you need to apply the corresponding patch:
* [[File:ups_patch_for_4.2.1.txt]]
* [[File:ups_patch_for_4.1.12.txt]]
* [[File:ups_patch_for_4.0.19.txt]]
* [[File:ups_patch_for_3.5.14.txt]]
[[Category:X-Cart user manual]]
[[Category:X-Cart user manual]]
[[Category:X-Cart modules]]
[[Category:X-Cart modules]]

Revision as of 16:54, 2 February 2010

What UPS OnLine® Tools module does

The module UPS OnLine® Tools enables UPS real-time shipping rate calculation at your store.

Roles in UPS OnLine® Tools module management

If you are an X-Cart GOLD administrator/provider or an X-Cart PRO administrator:

  • You can enable/disable UPS OnLine® Tools module, perform UPS OnLine® Tools registration and configure the module settings

Enabling and Configuring 'UPS Online® Tools'

To begin using the module:

1. Make sure your store meets the system requirements for installing and using UPS OnLine® Tools module. The following components are required:

  • EXPAT extension for php;
  • HTTPS module like Net:SLeay, libCURL, CURL, Open SSL or HTTPS-cli.
Note: You can use the Summary page (Administration menu->Summary) to find out whether these components are installed on your system. If you select Net:SLeay perl module as your preferred HTTPS module, be sure to specify the full path to Perl interpreter executable in General settings->General options.

2. Enable UPS OnLine® Tools module (Administration menu->Modules).

When the module is enabled, a link 'UPS OnLine® Tools' appears in the Settings menu of the Admin area of your store.

3. Register your UPS OnLine® Tools with UPS:

  • Go to the 'UPS OnLine® Tools' section of your store (Settings menu->UPS OnLine® Tools). You should see a dialog box titled 'UPS Online® Tools - Main page'.

  • Click the Register button. UPS Online® Tools Licensing & Registration Wizard will be launched to guide you through the registration process.

  • Complete the registration:
At Step 1, click the button Next to proceed with the registration.
At Step 2, read the UPS Technology Agreement.

If you agree to be bound by the terms and conditions of this Agreement, select 'Yes, I Do Agree' and click on Next. If you do not agree to accept the terms and conditions of the Agreement, select 'No, I Do Not Agree' and click on Next (In this case you will exit the registration process).
At Step 3, provide your registration information. The address you provided in General settings->Company options is automatically entered into the registration form. However, you can provide a different address and contact info (manually or using the Fill From Profile button).

Make sure you have completed all the fields and entered your valid email address before you click the Next button.
Step 4 informs you of the successful completion of the registration process:

Click the Finish button to return to 'UPS Online® Tools - Main page'.

4. Adjust your store to use UPS Online® Tools:

  • Ensure that the option 'Real-time shipping calculation' is enabled and the option 'Intershipper calculation services' is disabled in General settings->Shipping options section.
  • Again, go to the 'UPS OnLine® Tools' section of your store. After you have registered your UPS Online® Tools with UPS, a Configure button appears in the 'UPS Online® Tools - Main page' dialog box:

Click this button. A dialog box titled 'UPS Online® Tools Rates & Service Selection' opens.

  • Complete the fields in the 'Rates & Service Selection OnLine Tool' and 'Address Validation OnLine Tool' subsections of the 'UPS Online® Tools Rates & Service Selection' dialog box.
  • Click the Update button.
Note: The button Test can be used to test the Rates & Service Selection and Address Validation Tools.

Setting up International Shipping

Some of the international shipping services offered by UPS may depend on other UPS services. If you are planning to use such shipping methods in your store, it is important to resolve these dependencies first. Otherwise X-Cart will not be able to estimate UPS shipping charges in the real-time mode.

To resolve the dependencies, you need to activate the generic UPS services along with the shipping methods that you are planning to use. For example, UPS Express Saver (SM) depends on UPS Saver. Therefore, to get shipping charges for UPS Express Saver (SM) estimated you need to activate both UPS Express Saver (SM) and UPS Saver.

To activate UPS shipping services:

  1. Log in to the Admin area.
  2. Go to the Shipping methods section (Management menu -> Shipping methods).
  3. In the 'Shipping methods' box, click on the UPS link to expand the list of available shipping methods.
  4. Select the check boxes for the methods you want to activate.
  5. Click the Update button.


Activate "UPS Saver" shipping method if you are going to offer the following methods for your customers:

  • UPS Express Saver (SM)
  • UPS Worldwide Saver (SM)
  • UPS Worldwide Express Saver (SM)

Otherwise these methods will not be available for customers.

Activate "UPS Standard" shipping method to be able to offer the "UPS Standard to Canada" shipping method to customers.


The administartor is logged out when registering at UPS Online Tools

When trying to register at "UPS Online Tools" the administrator is redirected to the /admin/error_message.php?access_denied&id=37 page.

The issue is caused by some strange glitch in MySQL due to which the headers were corrupted..

In order to fix the issue add the following code to init.php file:

db_query("set names latin1");

UPS Online Tools: "There are no shipping methods available" error

X-Cart 4.1.9

Affected version: X-Cart v.4.1.9

Using UPS online shipping , no matter what settings are used in the admin area, the following errro message keeps appearing:

"There are no shipping methods available" (http://www.yoursite.com/error_message.php?error_no_shipping) as soon as anyone tries to checkout.

You can then click view cart and see the shipping method selected.

Solution: upgrade your X-Cart up to the 4.1.12 version.