UPS Tracking Number Field Type

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
ajlozier's picture

I have created a module for a client which I am calling "ups_tracking_number" which is more or less a custom field type with three displays: text, link (links tracking number to UPS Web site) and detail.

The detail view is the most interesting, and renders tracking numbers as a table showing latest status (uses the UPS tracking Web service). Clicking on the tracking number link opens a page within the Drupal site showing the full package history, just as you would see on the UPS Web site.

I have included a couple of screenshots. This module, if contributed, would optionally integrate with the already Commerce UPS module (so that you would not have to enter your credentials twice.)

I have done a lot of custom Drupal development in the last couple of years but this would be my first contributed module. Thoughts?

AttachmentSize
tracking_table.gif5.48 KB
tracking_detail.gif20.4 KB

Comments

You might want to black out

Garrett Albright's picture

You might want to black out the addresses in your image - that's personal information.

That aside, I think it's a good idea, and definitely will be of use to those who have Commerce sites and ship via UPS - which I'm sure is a significant number of people.

Can you share this module?

slavi007's picture

Hi. This project is very interesting for me. Please, can you share it with me? I can help you with testing.
I'll be waiting for reply (my email is
m y - m a a i l @ m a i l. r u).
Thanks.

In case anyone is still

chrisolof's picture

In case anyone is still interested in a module like this I've created a new one: Tracking number

https://www.drupal.org/sandbox/chrisolof/2385845

Tracking number exposes a new field type that allows for storage and display of tracking numbers for all the major US shipping companies. By default it displays the tracking number as a link to track the package on the shipping company's website.

Handy in cases where you need to tie shipment tracking numbers to orders or other entities.