This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Canada Post Tracking Shortcode

Description

Generate a parcel-tracking URL using [cp_tracker_link] shortcode. This also works with WooCommerce Order Notes.

Valid attributes:

  • tc: The actual tracking code
  • lang: Whether to display the page in English (en) or French (fr). Default is “en”. These values are used by Canada Post, so don’t try anything else.
  • target: If passed, will be the value used in the target attribute of the link.

    Example:

    [cp_tracker_link tc=”123456789″]

    or

    [cp_tracker_link tc=”123456789″ lang=”en” target=”_new”]

Installation

  1. Upload the entire plugin folder via FTP to /wp-content/plugins/.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

FAQ

  • Why does the shortcode not get transformed into a link when I add a WooCommerce Order Note?

    Order Notes are added via Ajax and the shortcode gets parsed in the back end. If you refresh the page,
    you will see that the shortcode got transformed into the link.

Contributors & Developers

“Canada Post Tracking Shortcode” is open source software. The following people have contributed to this plugin.

Changelog

1.1.1

  • Override WC hooks only if WC version is < 2.3.3

1.1

  • Applies a workaround for WooCommerce bug https://github.com/woothemes/woocommerce/issues/7349 which caused the clients to receive the comment with unparsed shortcode.

1.0

  • Initial Release