Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8267897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:41:46+00:00 2026-06-08T05:41:46+00:00

I am using wordpress and wp eCommerce for my products, I am using UPS

  • 0

I am using wordpress and wp eCommerce for my products, I am using UPS for shipping and I created an account with UPS and got the API and information I have entered under shipping is correct and I have checked all the right boxes.

I know that the UPS Shipping only does the calculations, however is there a way so when a user places an order, it goes into My UPS account with a tracking number or something similar. I got an email back from wp-ecommerce saying this

You would ship the product the way you would regardless of having the online store. In most cases this means going to your UPS system and creating a shipping label. At this point you will be provided a tracking number that you can then enter into the store sales log for that order. A notice will then be delivered to the person with the tracking information.

Is that the best way to do my shipping or does anyone have a better idea?

Thanks,
J

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:41:47+00:00Added an answer on June 8, 2026 at 5:41 am

    This is the only way available for WP eCommerce at the moment:

    I am unaware of any WP plugin that does anything but fetching shipping rates from UPS – you’d have to get someone to write you custom plugin that can also generate shipping digest and submit it to UPS to get a shipping label.

    Here’s some code you could start with to make such a plugin

    $xmlRequest1='<?xml version="1.0" encoding="ISO-8859-1"?>
    <AccessRequest>
    <AccessLicenseNumber>ACCESS LICENCE NUMBER</AccessLicenseNumber>
    <UserId>UPS USERNAME</UserId>
    <Password>UPS PASSWORD</Password>
    </AccessRequest>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ShipmentAcceptRequest>
    <Request>
    <TransactionReference>
    <CustomerContext>Customer Comment</CustomerContext>
    </TransactionReference>
    <RequestAction>ShipAccept</RequestAction>
    <RequestOption>1</RequestOption>
    </Request>
    <ShipmentDigest>SHIPMENT DIGEST</ShipmentDigest>
    </ShipmentAcceptRequest>
    ';
    
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "https://wwwcie.ups.com/ups.app/xml/ShipAccept");
    // uncomment the next line if you get curl error 60: error setting certificate verify locations
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    // uncommenting the next line is most likely not necessary in case of error 60
    // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 3600);
    
    //if ($this->logfile) {
    //   error_log("UPS REQUEST: " . $xmlRequest . "\n", 3, $this->logfile);
    //}
    $xmlResponse = curl_exec ($ch); // SHIP ACCEPT RESPONSE
    //echo curl_errno($ch);
    
    $xml = $xmlResponse;
    
    preg_match_all( "/\<ShipmentAcceptResponse\>(.*?)\<\/ShipmentAcceptResponse\>/s",
    $xml, $bookblocks );
    
    foreach( $bookblocks[1] as $block )
    {
    preg_match_all( "/\<GraphicImage\>(.*?)\<\/GraphicImage\>/",
    $block, $author ); // GET LABEL
    
    preg_match_all( "/\<TrackingNumber\>(.*?)\<\/TrackingNumber\>/",
    $block, $tracking ); // GET TRACKING NUMBER
    //echo( $author[1][0]."\n" );
    }
    
    echo '<img src="data:image/gif;base64,'. $author[1][0]. '"/>';
    

    Code source: http://webcollage.wordpress.com/2011/05/13/ups-label-print-with-php/

    And here http://webcollage.wordpress.com/2011/05/10/ups-shipping-confirmation-code-in-php/ you’ll find how the shipping digest looks like

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Wordpress I have created a multiple select box so that users can select
I am using wordpress for the first time, I have created a news/blog website
I am using wordpress 3.3.1 with twentyten theme, i have created a plugin to
I am using wordpress and have created a cookie in functions.php. My problem is
I am using wordpress and I have a folder under wp-content/ structured as: folder
Im using wordpress for my website and i have a massive amount of data
I am using WordPress I have put an extra container in the navigation menu.
I created a site using wordpress. I installed the 'starkers' theme and modified it.
I just started out using wordpress as a CMS. On the site I have
Anybody using wordpress as an article directory? I don't have time to customize it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.