# WooCommerce Shipping Tracking

- created: 05/04/2015
- latest update: 15/01/2016
- by: Lagudi Domenico

### Installation

First download the plugin file zip file, then there are two ways for installing:
1) The best way to install is via the Plugins > Add New Plugins section in the Wordpress Backend.
2) You can also manually bu unzipping plugin file in /wp-content/plugins directory
Once the plugin is installed please activate.
After activating you will see a "Shipping Tracking options" menu voice under WooCommerce menu.

### Overview

## Configuration

Clicking on WooCommerce -> Shipping Tracking options menu voice, you can enable/disable or add new shipping companies to track order shipment in WooCommerce mails and in Order detail page.

## Adding New Shipping Companies

WCST lets you to define your own shipping companies. To add new one is very easy: click on "Add Custom Companies" tab, then define "Shipping Company name" and "Shipping Company Tracking URL".
You can create a special URLs using the %s string in the address. For example: "http://www.shipping-company.com/?tacking-code:%s" In this way the WCST plugin will include the tracking code directly in the URL.

## Orders page

In orders page WCST plugins add a new column, "Tracking Number", that let's you instantly retrieve info about order shipping state.

In order detail page, you can easy configure shipping tracking code. In "Shipping Details" box you will find a select menu filled with shipping companies that you have enabled in WooComemerce -> Shipping tracking options menu.
Select one and the type tracking code in "Tracking number" field. Then save the order and that's it!

## Completed Order Mail and Order Detail Page (Frontend)

WCST will add tracking info to "Complete order mail" and to the "Order details" (frontend page). In this way all your customer can easily track their orders.

### Custom messages & Translationsration

By "custom message" tab you can customize Order detail page and Complete Order email text. WCST also support WPML and multilanguage text.
To add a message for every language, shop admin have only to select the desidered language in the wpml selector, enter the text and the save!

using the special shortcode [wcst_tracking_form] a ttracking form can be displayed in any post/page that will allow the user to choose the shipping company (using a select menu) and input the tracking code and to be redirected to the shipping company tracking page. The tracking code can also be used with the parameter company_id (company id can be retreived in the company configuration page): [wcst_tracking_form company_id=""] In this way the shipping company will be already selected (the shipping company select menu is thus hidden).

[wcst_tracking_form] (no company selected)

[wcst_tracking_form company_id=""] (company already selected)

### Estimated shipping Configurator

The WCST plugin has another useful feature: Estimated shippings dates. The shop admin, simply using a shortcode, can show on products pages the estimated shipping date. This is calculated automatically on the basis of "Estimation rule" that matches that product.
How it works? it's simple! You have only to do two steps:

#### First step: Estimated dates configuration

Using the "Estimated shipping configurator" under the "Shipping tracking" menu, the shop admin can create multiple "Estimation rules".
For each of them he can select:

1. Products/Categories: Selection of products and/or categories to which the rule applies.
2. Working days: days in which the goods are shipped.
3. Cut-off hour: if an order is placed befor that hour, the shippment takes place on the same day (if it is a working day).
4. Holidays / Non working days: days in which shippments cannot take place.

#### Second step: Use the shortcode on product page

In the product page, on the description or short description or any tab, the shop admin can use the special [wcst_show_estimated_date] shortcode to display the estimated shipping date.
The plugin will calculate the date finding the "Estimation" rule that matches the item. The plugin will automatically find the next working day where the item can be shipped.
Further more, on the product list a new column is added displaying the Estimated shipping rule that matches the product.