Removing specific text from order notes
We use a template to print gift messages that are included with orders from the various stores in all of their assorted formats. The Etsy gift messages are downloaded into SW as order notes, but includes the prefix: "Gift Message: " before the actual gift message. That's helpful for distinguishing it from other messages, but I'm looking for help removing that prefix so that only the actual gift message prints, but not the prefix. My attempts resulted in the removal of all "G, i, f, t," characters etc from the message, instead of the complete phrase. Below is the snippet of code for the Etsy messages (I can include the rest of the template code if necessary). Any help would be appreciated!
<!-- Etsy Gift Message -->
<xsl:for-each select="$order/Note[Visibility='Public']">
<xsl:if test="Text[contains(text(),'Gift Message:')]">
<xsl:value-of select="Text" />
</xsl:if>
</xsl:for-each>
</xsl:for-each>
Please sign in to leave a comment.
Comments
1 comment