Hopefully, I'm saying all of this right. . .I don't know much about this code at all.
We have a small shipping program where we can write custom invoices in XSLT (I thought it was XSLT, but maybe just XSL). I have a field that is pulled in at the end of the invoice: Order Notes. This will contain special notes written by the customer. Sometimes the data in this field contains the phrase "Buyer Notes:" before the customer data but sometimes not. If the data contains "Buyer Notes:", I don't want it pulled into the invoice.
We had a piece of code like this:
<xsl:template name="outputPageFooter">
<br> </br>
<table id="orderdetails" cellspacing="0">
<tr class="header">
<td>Special Instructions</td>
</tr>
<tr class="orderitem">
<td><xsl:value-of select="substring-after(//Order/Notes, 'Buyer notes:')" /></td>
</tr>
</table>
<br> </br>
However, we were finding that sometimes the order notes were missing altogether when the invoice printed. I'm guessing I need a more sophisicated statement that only removes the text "Buyer's Notes:" when it is actually in the field?
Can anyone help?
We have a small shipping program where we can write custom invoices in XSLT (I thought it was XSLT, but maybe just XSL). I have a field that is pulled in at the end of the invoice: Order Notes. This will contain special notes written by the customer. Sometimes the data in this field contains the phrase "Buyer Notes:" before the customer data but sometimes not. If the data contains "Buyer Notes:", I don't want it pulled into the invoice.
We had a piece of code like this:
<xsl:template name="outputPageFooter">
<br> </br>
<table id="orderdetails" cellspacing="0">
<tr class="header">
<td>Special Instructions</td>
</tr>
<tr class="orderitem">
<td><xsl:value-of select="substring-after(//Order/Notes, 'Buyer notes:')" /></td>
</tr>
</table>
<br> </br>
However, we were finding that sometimes the order notes were missing altogether when the invoice printed. I'm guessing I need a more sophisicated statement that only removes the text "Buyer's Notes:" when it is actually in the field?
Can anyone help?