Automate Label Printing
Help Table of Contents
Below is a screen shot of the Automation Dialog.
Understanding the Shipping Rules example shown above
The first line in the shipping rules list specifies that if the package is shipped
to any of the following states, PA, NY, IN, NC, MA, ME, MD, CT, DE, NJ, OH, RI,
VT, DC, IL, then ship by FedEx Ground. The second line in the shipping rules
list specifies that if the package is shipped to any of the following states, CA,
WA, OR, AZ, HI, ID, FL, NV, TX, UT, then ship by Priority US mail. The
third line in the shipping rules list specifies that if the weight of the package
is less than or equal to 0.8125 pounds (13 ounces), ship by First Class US mail.The
fourth line in the shipping rules list specifies that if the weight of the package
is less than or equal to 2.8 pounds, ship by Priority US mail. The last line
in the shipping rules list specifies the default shipping method to be FedEx Ground.
This means that if the shipping rules in lines one through five of the shipping
rules list do not match the package, ship by FedEx Ground, the default choice. The
automation software will print a label based on the first shipping rule that matches
the package, starting from the top of the shipping rules list. For this reason,
it is best to put rules based on destination state at the top of the list. If you
do not put shipping rules based on destination state at the top of the list, the
package may match a shipping rule based on its weight. Below, shown in bold
are the service types to use in the shipping rules list.
Service Types
- PRIORITY - Priority USPS
- FIRST - First Class USPS
- PARCELPOST - Parcel Post USPS
- EXPRESS - Express USPS
- MEDIAMAIL - Media Mail USPS
- GROUND - FedEx Ground
- GROUNDH - FedEx Ground Home Delivery
- 2DAY - FedEx 2nd Day
- ON3:00 - FedEx Standard Overnight
- ONnoon - FedEx Priority Overnight
- ON10:30 - FedEx First Overnight
Carrier Types
- FedEx
- USPS
- inquire about other carriers
Creating Shipping Rules
Shipping rules are typed into the file shipping_rules.txt which
is located in the dist folder of the shipping application. The file
will contain some example rules that you can change to fit your business needs.
You can use either Notepad or WordPad to edit the shipping_rules.txt file.
After entering your shipping rules, you will need to restart the shipping application
to read in the new shipping rules.
Shipping Rules by State
Example:
state PA NY IN NC MA ME MD CT DE NJ OH RI VT DC IL : FedEx GROUND
To create a shipping rule based on state, start the line with the word state. Following
the word state should be one space followed by the two letter abbreviation of the
first state for this rule. Next should be one space, followed by the next
two letter abbreviation of a state. Following the last state in the rule,
should be one space followed by : Next should be one space followed by the carrier,
either FedEx or USPS. Next should be one space, followed by the shipping service for
the rule.
Shipping Rules based on Weight
Example 1:
weight <= 0.8125 USPS FIRST
To create a shipping rule based on weight, start the line with the word weight.
Following the word weight should be one space followed by either the less than operator
< or the less than or equal to operator <=, followed by one space and then
the weight in pounds. Next should be one space followed by the carrier, either FedEx
or USPS. Next should be one space, followed by the shipping service for the rule.
Example 2:
2.8 < weight <= 10.5 FedEx GROUND
To create a shipping rule based on a weight range, start the line with a weight
in pounds. Following the weight should be one space followed by either the
less than operator < or the less than or equal to operator <=, followed by
one space and then the word weight. Next should be one space followed by either
the less than operator < or the less than or equal to operator <=. Next should
be one space followed by the carrier, either FedEx or USPS. Next should be one space,
followed by the shipping service for the rule.
Default Shipping Rule
Example:
default FedEx GROUND
To create a default shipping rule, start the line with the word default. Following
the word default should be one space followed by the carrier, either FedEx or USPS.
Next should be one space, followed by the shipping service for the rule. The
default shipping rule should be the last rule in the shipping rules list.