Custom Template - Privatized Ship To Details

Comments

2 comments

  • Avatar
    Andrew E

    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" />

    0
    Comment actions Permalink
  • Avatar
    Gerald

    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

    0
    Comment actions Permalink

Please sign in to leave a comment.