Create a Template to Send a Return Label Only
ShipWorks gives you the ability to email return labels to your customers at the time the label is created. By default, ShipWorks will generate an email that includes both the original shipping label and the return label. This article will guide you through the process of adding an email template to ShipWorks that can be used to email only the return shipping label to your customers.
2. Click New Template button on the Template Manager screen.
3. Name the template Return Label. Then, click on the Labels folder in the list of templates. This tells ShipWorks to save the new template in the Labels folder. Click Next.
4. Select the Standard template type and then click Next.
5. Choose the XML template format and then click Finish.
6. Verify that your new template is selected. Then, click on the Edit button.
7. Select the Code tab. Then, select all of the code and delete it.
8. Copy (CTRL+C) the code from the code block below and paste (CTRL+V) it into the Code tab of the template editor in 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 = 'wide']" /> <xsl:for-each select="$labels"> <xsl:variable name="shipment" select="../../../.." /> <xsl:if test="$shipment/ReturnShipment = 'true'"> <TemplatePartition> <center> <table height="100%" width="100%" cellspacing="0"> <tr> <td valign="middle" align="center"> <xsl:choose> <xsl:when test="$shipment/ShipmentType = 'FedEx'"> <img src="{.}" style="width:576; height:384;" /> </xsl:when> <xsl:when test="$shipment/ShipmentType = 'UPS'"> <img src="{.}" style="width:576; height:384;" /> </xsl:when> <xsl:otherwise> <img src="{.}" style="width:{@widthInches}in; height:{@heightInches}in;" /> </xsl:otherwise> </xsl:choose> </td> </tr> </table> </center> </TemplatePartition> </xsl:if> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
9. Click the Save button, then the Close button to exit the Template Manager screen.
1. Select an order that has a return label. Then, right click on the order and select Compose Email. Select the template you created in the above section.
2. Verify that you see the return label in the body of the email.
3. Verify that the To: email address and the Subject are correct. Then, click the Send button.
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