Code help
I have a custom template that makes a report where I can look at Order #, SKU, Order Total, Shipping charge. When I run the report it always groups the customers last name in with the SKU and looking at the code I see that the lastname is in there. I would like to remove the last name and just have the SKU in that column when I run my report.
Anyone know how or what to delete to get rid of that last name. Here is the code for that section.
<tr>
<td style="{$rowStyle}">
<!-- Shared Snippet -->
<xsl:call-template name="OrderNumber">
<xsl:with-param name="order" select="." />
</xsl:call-template>
</td>
<td style="{$rowStyle};"><xsl:value-of select="../../Store/StoreType/Name" /></td>
<td style="{$rowStyle};"><xsl:value-of select="$shipments[1]/ServiceUsed" /></td>
<td style="{$rowStyle}"><xsl:value-of select="Item/SKU" /><xsl:text> </xsl:text><xsl:value-of select="Address[@type='ship']/LastName" /></td>
<td style="{$rowStyle}">$ <xsl:value-of select="format-number((..//Total), '#,##0.00')" /></td>
<td style="{$rowStyle}">$ <xsl:value-of select="format-number((..//Shipment/TotalCharges), '#,##0.00')" /></td>
<td style="{$rowStyle}"></td>
</tr>
-
Official comment
Hello Don,
The following code should accomplish removing the last name as you are wanting:
<tr>
<td style="{$rowStyle}">
<!-- Shared Snippet -->
<xsl:call-template name="OrderNumber">
<xsl:with-param name="order" select="." />
</xsl:call-template>
</td>
<td style="{$rowStyle};"><xsl:value-of select="../../Store/StoreType/Name" /></td>
<td style="{$rowStyle};"><xsl:value-of select="$shipments[1]/ServiceUsed" /></td>
<td style="{$rowStyle}"><xsl:value-of select="Item/SKU" /></td>
<td style="{$rowStyle}">$ <xsl:value-of select="format-number((..//Total), '#,##0.00')" /></td>
<td style="{$rowStyle}">$ <xsl:value-of select="format-number((..//Shipment/TotalCharges), '#,##0.00')" /></td>
<td style="{$rowStyle}"></td>
</tr>Please let us know if you require assistance with implementing this modification. We would be happy to open a quick remote session to facilitate.
Thank you,
Robert K
ShipWorks | Technical Support Representative - Tier 2
One Memorial Drive, 20th Floor, Saint Louis, MO 63102
ShipWorks.com | 800.952.7784
Comment actions
Please sign in to leave a comment.
Comments
2 comments