You are here

README.txt in Simple Package Tracking 7

-----------------------
Simple Package Tracking
-----------------------

The Simple Package Tracking module makes adding tracking information to a
customer's order a breeze! Simple Package Tracking was developed for online
stores that drop ship and/or manually process a large numbers of orders
with limited staff. With this module, tracking information is tied to the
order, rather than individual packages, which dramatically minimizes the
number of steps required to add tracking information to the order.

Drupal Simple Package for download at
https://www.drupal.org/project/simple_package_tracking

Enable the module in the usual way.


--------
Overview
--------

The module has two datasets:

 *  Carriers, who might or might not have a package tracking facility,
 *  Package tracking entries attached to customer orders when the order is
    shipped.

The Administration section sets the carriers allowed for your store, whilst
the normal order view screen or the quick-edit screen allows you to attach
the tracking entries. Each tracking entry shows the customer the carrier
name, the tracking number, a link to the tracking service URL to show the
tracking, and a notes field that typically holds the date the parcel was
shipped (but can be anything you like).


--------------
Administration
--------------

Go to: Store > Configuration > Simple Package Tracking
       admin/commerce/config/tracking/carriers

Adding a carrier amounts to specifying the carrier name and the pattern for
calculating the URL at which tracking can be viewed for any given order
number. Three fields are provided:

New carrier name:

    The name of your postal service. This will be visible to the customer.

Example tracking number:

    A sample tracking number of a parcel.

Carrier URL to show tracking for the example tracking number:

    The exact URL that will take one to the web page to view tracking for
    the sample number.

For example, for Australia Post I might add:

---------------------------------------------------------------
New carrier name:
    Australia Post

Example tracking number:
    12345

Carrier URL to show tracking for the example tracking number:
    http://auspost.com.au/track/track.html?exp=b&id=12345
---------------------------------------------------------------

The system calculates the general pattern by looking for the example
number in the URL. Alternatively, you could specify the final pattern
directly. For example:

---------------------------------------------------------------
New carrier name:
    Australia Post

Example tracking number:
    (leave blank)

Carrier URL to show tracking for the example tracking number:
    http://auspost.com.au/track/track.html?exp=b&id=@tracking_number
---------------------------------------------------------------

ALSO PROVIDED (by fugazi):

The file, tracking-urls.txt, contains suitable URLs for many tracking
services around the world. NB: We cannot guarantee that this list will be
accurate, as carriers do change their computer systems from time to time.
As always, test on your testing system before going live. Please report any
discrepancies by posting an issue for this module on drupal.org.

A link is provided to allow you to automatically set the configuration
simply by clicking on your chosen carrier from the list!

--------------------------------
Also on the administration page:
--------------------------------

A short configuration form allows you to set a default text for the note
field that will appear on the order page. This can be made to default to
today's date (in any format you like). For example, if the default text is:

Posted on %e %b, %Y, %l:%M%P

and the time is 3:35 on 10 October 2014, then the Note to Customer field
will be prefilled as:

Posted on 10 Oct, 2014, 3:35pm

The codes available for this feature are as listed on:
http://php.net/manual/en/function.strftime.php


----------------
Order Fulfilment
----------------

Tracking information will be entered under
       admin/commerce/orders

You can add or remove tracking for individual orders on either the order
view screen for an individual order, or on the quickedit panel for an order
in the orders list.

The fields shown are:

Carrier:
    A drop-down list of the carriers you have set up in the administration
    section.

Tracking number:
    The number given to you by the postal service when you posted the
    parcel.

Note to customer:
    This is provided so you can enter the time of posting if you wish, but
    you can enter any short message you please. If you set up the default
    text using the system explained above, this will be pre-filled with the
    current date and/or time (in whatever format you like).

Execute associated actions:
    A checkbox to control whether actions will execute, as explained below.


-----
Buyer
-----

The buyer can view, but not edit, tracking information on their order view
screen.


------------------------------------------------------------------------
Automatically sending email notifications when you add a tracking number
------------------------------------------------------------------------

The module invokes the event 'simple_package_tracking_added' when you add
a tracking number to an order. Any actions that you connect to this event
will be executed. (A checkbox is provided to suppress these actions if they
are not needed on some occasion.)

To get this going, go to admin/config/workflow/rules. Add a new rule and
select the event "A tracking number is added to order". You can add any
actions, but a good idea is to add two:

1) a "Send mail" action. You can include tokens to refer to the carrier,
   the tracking number, and the tracking URL. For example:

    Your parcel has now been sent via [tracking-carrier:value], with
    tracking number [tracking-number:value]. To track your parcel, please
    go to [tracking-url:value] to see your tracking information.

2) Then add a "Show a message on the site" action so you see a
   verification. Your message should allow you to verify that the correct
   action has occurred. For example:

    Email sent to [commerce-order:mail-username] re tracking no.
    [tracking-number:value], url [tracking-url:value], with carrier
    [tracking-carrier:value].

Tokens available are:

[tracking-carrier:value]
    The name of the postal service (carrier) as set up in the admin page.

[tracking-number:value]
    The tracking umber given to you by the carrier.

[tracking-url:value]
    The URL of the carrier tracking service, with the number filled in.

[tracking-note:value]
    The text of the note attached to this tracking entry.


-----------
Limitations
-----------

The module was originally written for both Ubercart and Drupal Commerce.
However, circumstances have prevented any recent testing on Ubercart, and
it is strongly suspected that the module no longer works correctly for
Ubercart. It has been thoroughly tested with Drupal Commerce, and no bugs
are known at the time of writing.


-------
Credits
-------

pyrello
rhouse
fugazi

File

README.txt
View source
  1. -----------------------
  2. Simple Package Tracking
  3. -----------------------
  4. The Simple Package Tracking module makes adding tracking information to a
  5. customer's order a breeze! Simple Package Tracking was developed for online
  6. stores that drop ship and/or manually process a large numbers of orders
  7. with limited staff. With this module, tracking information is tied to the
  8. order, rather than individual packages, which dramatically minimizes the
  9. number of steps required to add tracking information to the order.
  10. Drupal Simple Package for download at
  11. https://www.drupal.org/project/simple_package_tracking
  12. Enable the module in the usual way.
  13. --------
  14. Overview
  15. --------
  16. The module has two datasets:
  17. * Carriers, who might or might not have a package tracking facility,
  18. * Package tracking entries attached to customer orders when the order is
  19. shipped.
  20. The Administration section sets the carriers allowed for your store, whilst
  21. the normal order view screen or the quick-edit screen allows you to attach
  22. the tracking entries. Each tracking entry shows the customer the carrier
  23. name, the tracking number, a link to the tracking service URL to show the
  24. tracking, and a notes field that typically holds the date the parcel was
  25. shipped (but can be anything you like).
  26. --------------
  27. Administration
  28. --------------
  29. Go to: Store > Configuration > Simple Package Tracking
  30. admin/commerce/config/tracking/carriers
  31. Adding a carrier amounts to specifying the carrier name and the pattern for
  32. calculating the URL at which tracking can be viewed for any given order
  33. number. Three fields are provided:
  34. New carrier name:
  35. The name of your postal service. This will be visible to the customer.
  36. Example tracking number:
  37. A sample tracking number of a parcel.
  38. Carrier URL to show tracking for the example tracking number:
  39. The exact URL that will take one to the web page to view tracking for
  40. the sample number.
  41. For example, for Australia Post I might add:
  42. ---------------------------------------------------------------
  43. New carrier name:
  44. Australia Post
  45. Example tracking number:
  46. 12345
  47. Carrier URL to show tracking for the example tracking number:
  48. http://auspost.com.au/track/track.html?exp=b&id=12345
  49. ---------------------------------------------------------------
  50. The system calculates the general pattern by looking for the example
  51. number in the URL. Alternatively, you could specify the final pattern
  52. directly. For example:
  53. ---------------------------------------------------------------
  54. New carrier name:
  55. Australia Post
  56. Example tracking number:
  57. (leave blank)
  58. Carrier URL to show tracking for the example tracking number:
  59. http://auspost.com.au/track/track.html?exp=b&id=@tracking_number
  60. ---------------------------------------------------------------
  61. ALSO PROVIDED (by fugazi):
  62. The file, tracking-urls.txt, contains suitable URLs for many tracking
  63. services around the world. NB: We cannot guarantee that this list will be
  64. accurate, as carriers do change their computer systems from time to time.
  65. As always, test on your testing system before going live. Please report any
  66. discrepancies by posting an issue for this module on drupal.org.
  67. A link is provided to allow you to automatically set the configuration
  68. simply by clicking on your chosen carrier from the list!
  69. --------------------------------
  70. Also on the administration page:
  71. --------------------------------
  72. A short configuration form allows you to set a default text for the note
  73. field that will appear on the order page. This can be made to default to
  74. today's date (in any format you like). For example, if the default text is:
  75. Posted on %e %b, %Y, %l:%M%P
  76. and the time is 3:35 on 10 October 2014, then the Note to Customer field
  77. will be prefilled as:
  78. Posted on 10 Oct, 2014, 3:35pm
  79. The codes available for this feature are as listed on:
  80. http://php.net/manual/en/function.strftime.php
  81. ----------------
  82. Order Fulfilment
  83. ----------------
  84. Tracking information will be entered under
  85. admin/commerce/orders
  86. You can add or remove tracking for individual orders on either the order
  87. view screen for an individual order, or on the quickedit panel for an order
  88. in the orders list.
  89. The fields shown are:
  90. Carrier:
  91. A drop-down list of the carriers you have set up in the administration
  92. section.
  93. Tracking number:
  94. The number given to you by the postal service when you posted the
  95. parcel.
  96. Note to customer:
  97. This is provided so you can enter the time of posting if you wish, but
  98. you can enter any short message you please. If you set up the default
  99. text using the system explained above, this will be pre-filled with the
  100. current date and/or time (in whatever format you like).
  101. Execute associated actions:
  102. A checkbox to control whether actions will execute, as explained below.
  103. -----
  104. Buyer
  105. -----
  106. The buyer can view, but not edit, tracking information on their order view
  107. screen.
  108. ------------------------------------------------------------------------
  109. Automatically sending email notifications when you add a tracking number
  110. ------------------------------------------------------------------------
  111. The module invokes the event 'simple_package_tracking_added' when you add
  112. a tracking number to an order. Any actions that you connect to this event
  113. will be executed. (A checkbox is provided to suppress these actions if they
  114. are not needed on some occasion.)
  115. To get this going, go to admin/config/workflow/rules. Add a new rule and
  116. select the event "A tracking number is added to order". You can add any
  117. actions, but a good idea is to add two:
  118. 1) a "Send mail" action. You can include tokens to refer to the carrier,
  119. the tracking number, and the tracking URL. For example:
  120. Your parcel has now been sent via [tracking-carrier:value], with
  121. tracking number [tracking-number:value]. To track your parcel, please
  122. go to [tracking-url:value] to see your tracking information.
  123. 2) Then add a "Show a message on the site" action so you see a
  124. verification. Your message should allow you to verify that the correct
  125. action has occurred. For example:
  126. Email sent to [commerce-order:mail-username] re tracking no.
  127. [tracking-number:value], url [tracking-url:value], with carrier
  128. [tracking-carrier:value].
  129. Tokens available are:
  130. [tracking-carrier:value]
  131. The name of the postal service (carrier) as set up in the admin page.
  132. [tracking-number:value]
  133. The tracking umber given to you by the carrier.
  134. [tracking-url:value]
  135. The URL of the carrier tracking service, with the number filled in.
  136. [tracking-note:value]
  137. The text of the note attached to this tracking entry.
  138. -----------
  139. Limitations
  140. -----------
  141. The module was originally written for both Ubercart and Drupal Commerce.
  142. However, circumstances have prevented any recent testing on Ubercart, and
  143. it is strongly suspected that the module no longer works correctly for
  144. Ubercart. It has been thoroughly tested with Drupal Commerce, and no bugs
  145. are known at the time of writing.
  146. -------
  147. Credits
  148. -------
  149. pyrello
  150. rhouse
  151. fugazi