6. Shipping label Templates

Here you can configure how our extension will export the order information into a text file : when you confirm the packing, the order information file is downloaded, you can then import it into your carrier software to print the shipping label.

General

  • Name : give a name to the template
  • Status
  • Type : only order details is available for the moment
  • Associate shipping methods : select the shipping methods here. When the extension will have to generate the shipping label for one order, it will retrieve the matching templates based on the shipping method.

Export

This is here that you configure how the export file is built.

  • File name : give a file name (with the extension)
  • Mime type : select the file type (used when the file is downloaded)
  • File header line : enter here the header file (if exists). Most of the time, this is the name of the column, separated with a coma or a semi-colon.
  • header line for orders : enter here the line for a new order. You can use the codes between curly brackets here.
  • Line for each products in orders: this line is repeated for each product in the order
  • Footer line for orders : this line is added at the end of every orders

Available codes

You can use codes to include order or product details within the export file. A code is added between curly brackets, for instance, to include the order number, use {order.increment_id} The list of every codes is available in the “Avalable codes” tab (there are generated using the last shipment.

Examples

Simple csv

  • File header line
order;customer_firstname;customer_lastname;weight;address;city;postcode;country
  • Header line for orders
{order.increment_id};{shippingaddress.firstname};{shippingaddress.lastname};{shipment.total_weight};{shippingaddress.street};{shippingaddress.city};{shippingaddress.postcode};{shippingaddress.country_id}
  • Output file
order;customer_firstname;customer_lastname;weight;address;city;postcode;country
000000008;Olivier;Zimmermann;3.00;12 rue des champs elysees;paris;75001;FR

Simple csv with products

  • Header line for orders
o;{order.increment_id};{shippingaddress.firstname};{shippingaddress.lastname};{shipment.total_weight};{shippingaddress.street};{shippingaddress.city};{shippingaddress.postcode};{shippingaddress.country_id}
  • Line for each products in orders
p;{orderitem.qty_shipped};{orderitem.sku};{orderitem.name};{product.barcode}
  • Output file
o;000000008;Olivier;Zimmermann;3.00;12 rue des champs elysees;paris;75001;FR
p;2;NOK1260;Nokia 2460 3G;3067263547372
p;1;headset12;Nokia headset 10122;3097263999972

Xml

  • File header line
<orders>
  • Header line for orders
<order id="{order.increment_id}">
  <shipto>
    <firstname>{shippingaddress.firstname}</firstname>
    <lastname>{shippingaddress.lastname}</lastname>
    <street>{shippingaddress.street}</street>
    <postcode>{shippingaddress.postcode}</postcode>
    <city>{shippingaddress.city}</city>
    <country>{shippingaddress.country_id}</country>
  </shipto>
  <products>
  • Line for each products in orders
<product sku="{orderitem.sku}" qty="orderitem.qty_shipped">
  • Footer line for orders
  </products>
</order>
  • Output file
<orders>
  <order id="000000008">
    <shipto>
      <firstname>olivier</firstname>
      <lastname>zimmermann</lastname>
      <street>12 rue des champs elysees</street>
      <postcode>75001</postcode>
      <city>Paris</city>
      <country>FR</country>
    </shipto>
    <products>
      <product sku="NOK1260" qty="2">
      <product sku="headset12" qty="1">
    </products>
  </order>
</orders>