Optional Setup: Create a Branded Thermal Label Using the UPS and/or FedEx API
-
Click the Manage tab and then on the Templates button. Then, select the Labels > Standard template.
Click Copy then, OK.
Rename the template (e.g. "Standard for Thermal with Logo"). Click to the Code tab delete ALL the code and replace it with the code below. (Copy the below and paste it into ShipWorks).
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sw="http://www.interapptive.com/shipworks" extension-element-prefixes="sw"> <!-- Imports --> <xsl:import href="System\Snippets" /> <xsl:output method="html" encoding="utf-8" /> <!-- Start of template --> <xsl:template match="/"><xsl:apply-templates /></xsl:template> <xsl:template match="ShipWorks"> <html> <head> <title>Interapptive ShipWorks Template</title> </head> <body> <xsl:variable name="labels" select="(//Primary | //Supplemental)/Label[@orientation = 'tall']" /> <xsl:for-each select="$labels"> <xsl:variable name="shipment" select="../../../.." /> <TemplatePartition> <> <table height="100%" width="100%" cellspacing="0"> <tr valign="top" style="height: 2in;"> <td valign="" align=""> <img src="http://interapptive.com/t2/images/common/shipworks_logo.png" /> </td> </tr> <tr valign="top" style="height: 2in;"> <td valign="top" align=""> <xsl:choose> <xsl:when test="$shipment/ShipmentType = 'FedEx'"> <img src="{.}" style="width:384; height:576;" /> </xsl:when> <xsl:when test="$shipment/ShipmentType = 'UPS'"> <img src="{.}" style="width:384; height:576;" /> </xsl:when> <xsl:otherwise> <img src="{.}" style="width:{@widthInches}in; height:{@heightInches}in;" /> </xsl:otherwise> </xsl:choose> </td> </tr> </table> </> </TemplatePartition> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
4. Update the code that shows:
<img src="http://interapptive.com/t2/images/common/shipworks_logo.png" />
to point to the correct logo/image. (You can also use a path, like c:\image.jpg or a url of the image).
5. Now click to the Settings tab near the top of the template editor Printing sub section choose the appropriate thermal printer (windows driver) for this customer’s thermal printer. Leave the source as whatever is chosen by default (Usually shows Manual Feed, this is correct).
6. Now click to the Labels sub section on the left click the Custom Label Sheet… button as shown below.
7. Click New and provide a name like 4x8”. Change the sheet size to be Custom set Dimensions to 4.00 by 8.00. Then in the Label Dimension section set height to 8.00 and width to 4.00. See above screenshot for reference. Save and close this label layout window to save. Now click the Choose button and choose the newly created label sheet below the custom section, as seen below.
8. Now click ManageShipping SettingsUPS (and/or FedEx) section on the left. Click the Defaults - UPS (or FedEx) blue underlined hyperlink to open the Default profile settings for this shipping provider. Scroll down until you find the Labels section. Set the Requested Label format to be Standard (and NOT EPL/ZPL).
9. Now click to the Printing tab (for UPS/FedEx as needed). Change where it shows (or should show by default) Otherwise always print with Standard. Click on the Standard and choose the newly configured/updated Template you were just working on, Standard for Thermal with Logo.
10. Now Process a NEW SHIPMENT with UPS/FedEx to test the label setup. (Do not attempt to reprint an old shipment to test as this may not be a viable test, depending on your previous configuration.)
NOTE: This method will not function if processing label shipments with EPL/ZPL label formats. If you processed a shipment as EPL/ZPL void that shipment and process a newly created shipment as Standard instead.
Still Need Help?
Please feel free to reach out to one of our awesome Technical Support Representatives in St. Louis. We are happy to help.
Have a comment to share about this article? We'd love to hear from you. You must be logged in to your Support Portal account to leave a comment.
Comments
0 comments