Shipping Profit & Loss Report Code Help
I need help with getting the package dimensions to show up in the Shipping Profit and Loss Template. The Package Details report has the additional info I need, but when I try to add it to the report it doesn't grab the details.
I need these details added:
<xsl:value-of select="Dimensions/Length" /><xsl:text>","</xsl:text>
<xsl:value-of select="Dimensions/Width" /><xsl:text>","</xsl:text>
<xsl:value-of select="Dimensions/Height" /><xsl:text>"</xsl:text>
to this
<td style="{$rowStyle};"><xsl:call-template name="OrderNumber"><xsl:with-param name="order" select="." /></xsl:call-template></td>
<td style="{$rowStyle};"><xsl:value-of select="RequestedShipping" /></td>
<xsl:if test="count($shipments) = 1">
<td style="{$rowStyle};"><xsl:value-of select="sw:ToShortDate($shipments[1]/ProcessedDate)" /></td>
<td style="{$rowStyle};"><xsl:value-of select="$shipments[1]/ServiceUsed" /></td>
<td style="{$rowStyle};"><xsl:value-of select="$shipments[1]/TrackingNumber" /></td>
<td style="{$rowStyle};"><xsl:value-of select="$shipments[1]/TotalWeight" /></td>
</xsl:if>
I've tried adding these three variations:
<td style="{$rowStyle};"><xsl:value-of select="Dimensions" /></td>
<td style="{$rowStyle};"><xsl:value-of select="$shipments[1]/Package" /></td>
<td style="{$rowStyle};" align="right"><xsl:value-of select="/Dimensions/Height" /></td>
When I add "Package" it pulls the dimensions, but the string contains additional info and it is all in one line.
-
Hi Angela,
Thank you so much for your post! I understand how tricky it can be to modify these templates to meet your needs, but do not worry, because that I will be happy to assist you. I am going to create a ticket under your name to reach out to you and assist you better with this template. You should be getting an email from me very shortly.
Best Regards,
Rodolfo M.
ShipWorks | Technical Support Representative
(O) 800-952-7784 | support@shipworks.com
Please sign in to leave a comment.
Comments
1 comment