Custom Template - Privatized Ship To Details
I would like assistance modifying the Ship To portion of invoice and packing slip templates.
I would like the Ship To section to only display the customer name, city, and state.
The purpose of this is to privatize any other details of the customer.
-
Looks like removing the InvoiceShipTo block and replacing with the below does the trick:
<xsl:value-of select="Customer/Address/FullName" />
<br />
<xsl:value-of select="Customer/Address/City" />,
<xsl:value-of select="Customer/Address/StateName" />, <xsl:value-of select="Customer/Address/PostalCode" /> -
Nice Andrew!
That's exactly right.
While the code you have here will work flawlessly, I would recommend one small update to ensure we get the "ShipTo" information every time.
Instead of using "Customer/Address/FullName", I would recommend "$order/Shipment/Address[@type='ship']/FullName".
This will display whatever name is entered on the Ship Orders panel (on the off chance the shipment is manually updated).
Please let me know if you have any questions. If so, I can create a support ticket and reach out to you and make sure we get this template 100% to your liking.
Thanks,
Gerald C
Please sign in to leave a comment.
Comments
2 comments