Fields Available for Customizing Packing Slips and Invoices

Our packing slip and invoice templates are fully customizable. To customize your packing slip or invoice, check out the instructions and templates in our article Printing and Customizing Packing Slips and Invoices. Once you have selected a template, you can copy the HTML tags from this article and paste them in your template.

The tables in this article are organized by the type of fields the tags relate to.

Field Categories:

  1. General Order Info
  2. Ship To Address Fields
  3. Shipping Fields
  4. Ordered Item Information
  5. Sorting Line Items
  6. Buyer Information
  7. Billing Details
  8. Related Articles

 

General Order Info

The following HTML tags automatically populate general information about an order onto your packing slip or invoice.

Order Field Name

HTML Tag

Amazon Prime Indicator
(Automatically populates with "Yes" for Prime orders and "No" for non-Prime orders)

<order:isAmazonPrime/>

Order Date

<order:date/>

Sales Channel Order ID Number

<market:orderid/>

Sales Channel Alternate Order ID

<market:alternatorderid/>

Sales Channel Name

<market:name/>

Internal Order ID Number

<order:saleid/>

Internal Order ID Barcode
(Automatically turns the Internal Order ID into a scannable barcode)

<order:saleidbarcode/>

Order Special Instructions
(Notes from the buyer)

<order:specialInstructions/>

Order Gift Message

<order:giftMessage/>

Order Total

<order:price/>

Order Sales Tax Amount

<order:salesTaxAmount/>

Discount Applied to the Entire Order

<order:totalDiscount/>

Total Paid for the Products Ordered

<order:productsTotal/>

Order Payments

<order:payments/>

Order Quantity

<order:qty/>

 

Ship To Address Fields

The HTML tags in this table populate details about the address you are shipping to onto your packing slip or invoice.

Ship To Address Field Name

HTML Tag

Ship To Name

<ship:toname/>

Ship To Company Name

<ship:tocompany/>

Ship To Address 1

<ship:street1/>

Ship To Address 2

<ship:street2/>

Ship To City

<ship:city/>

Ship To State

<ship:state/>

Ship To Zip Code

<ship:zip/>

Ship To Country

<ship:country/>

 

Shipping Fields

The following HTML tags populate shipping related information onto your packing slip. These fields aren't designed to work on invoices.

Shipping Field Name

HTML Tag

Ship Method Requested by the Buyer

<ship:method/>

Shipping Fee Paid by the Buyer

<ship:fee/>

Shipping Carrier Selected During Label Printing

<ship:processor/>

Tracking Number

<ship:trackingNumber/>

Package ID Number

<ship:packageid/>

Total Quantity Shipped

<ship:totalqty/>

Date Shipped

<ship:date/>

 

Ordered Item Information

Details about the products that your buyer ordered automatically populate into a table on your packing slips and invoices. You can use the field names in this section to control which fields appear in the table.

ecommerce-order-management-packing-slip-ordered-items-table.png

The HTML tag that you use to add the ordered items table to your packing slip is slightly different than the tag you use to add the table to your invoice. Here is how you add each table:

 

Displaying Ordered Items on Packing Slips

To display the table of ordered items on your packing slip, use the tag <order:shippedItems showColumns="Field Tag 1, Field Tag 2, Field Tag 3, ..."/>. Replace Field Tag 1, Field Tag 2, Field Tag 3, ... with the names of the field tags provided in the tables below. Separate each field with a comma and space. Keep the quotation marks at the beginning and end of your list of fields.

EXAMPLE: You want to show the quantity ordered, SKU, title, gift wrapping purchase, and gift message for each item. To do so, you would enter the following HTML tag into your packing slip template: <order:shippedItems showColumns="qtyordered, csku, title, giftWrap, giftMessage"/>.

 

Displaying Ordered Items on Invoices

To display the table of ordered items on your invoice, use the tag <order:orderedItems showColumns="Field Tag 1, Field Tag 2, Field Tag 3, ..."/>.

The only difference between the packing slip HTML tag and invoice HTML tag is that the packing slip uses "order:shippedItems" and the invoice uses "order:orderedItems." As far adding fields to the table, the two tags work exactly the same way.

 

Fields Available Only for Packing Slips

The following two tags only work on packing slips. If you add them to an invoice, they won't populate with values.

Ordered Item Field

Field Tag

Quantity Shipped

qtyshipped

Quantity Packaged

qtypackaged

 

 

Fields Available for Both Packing Slips and Invoices

The following field tags can be used in the ordered items table for both packing slips and invoices.

Ordered Item Field

Field Tag

Product Name

name

Product SKU

csku

Main Product Image

mainImage

Quantity Ordered

qtyordered

UPC

upc

Manufacturer

manufacturer

Model Number

modelNumber

Product Weight

weight

Gift Wrap Purchase

giftWrap

Gift Message From Buyer

giftMessage

MSRP

msrp

Price per Item

price

Extended Price
(= Price per Item X Quantity Ordered) 

extendedPrice

Discount Applied to the Product

discountAmount

Declared Value for Customs

declaredValue

Sales Channel Order ID Number

marketSaleID

Sales Channel Listing ID

listingid

Amazon ASIN

asin

Product's Country of Origin

countryOfOrigin

Product Title

title

Custom Product Attribute

attr:{AttributeName}
(replace {AttributeName} with the name of the custom product attribute)

Storage Location

storageLocation

PO Source

inventorylist

Item Cost

inventoryCost

Sorting Line Items

You can sort line items by any of the above mentioned fields on the Ordered Items Table.

The sorting is alphanumeric and can be set ascending or descending.

For Example if you have:

<order:shippedItems showColumns="qtyordered, csku, title, storageLocation"/>

And you want to sort by storage location, you will add the following code in red to the existing code block:

<order:shippedItems showColumns="qtyordered, csku, title, storageLocation" sortBy="storageLocation" sortByDir="desc"/>

Set "sortByDir" to ascending by using "asc" or descending by using "desc"

Buyer Information

The following HTML tags will automatically populate your buyer's information onto your packing slip or invoice.

Buyer Info Field Name

HTML Tag

Name

<buyer:name/>

Buyer's Email Address

<buyer:email/>

Buyer's Phone Number

<buyer:phone/>

Buyer's Street Address 1

<buyer:street1/>

Buyer's Street Address 2

<buyer:street2/>

Buyer's City

<buyer:city/>

Buyer's State

<buyer:state/>

Buyer's Zip Code

<buyer:zip/>

Buyer's Country

<buyer:country/>

 

Billing Details

These tags will add billing information onto your packing slip or invoice.

Billing Info Field Name

HTML Tag

Billing Name

<bill:name/>

Billing Email Address

<bill:email/>

Billing Phone Number

<bill:phone/>

Billing Street Address 1

<bill:street1/>

Billing Street Address 2

<bill:street2/>

Billing City

<bill:city/>

Billing State

<bill:state/>

Billing Zip Code

<bill:zip/>

Billing Country

<bill:country/>

Billing Invoice

<bill:invoice/>

Billing Processor

<bill:processor/>

Billing Transaction ID

<bill:transactionid/>

Amount Billed

<bill:amount/>

Billing Date

<bill:date/>

 

Related Articles

Was this article helpful?
5 out of 5 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.