Looking for a notation on invoices to show if customer is a returning customer

Comments

2 comments

  • Avatar
    Dan Pankau

    Sure!

    To achieve this, we will use the xsl:if statement to check if the value of <xsl:value-of select="Customer/Summary/OrdersPlaced" /> is greater than 1. If the condition is true, we will display "Returning Customer".

    Here is the XSLT code to accomplish this:

    <!-- Check if Customer has placed more than 1 order -->
    <xsl:if test="Customer/Summary/OrdersPlaced &gt; 1">
        <xsl:text>Returning Customer</xsl:text>
    </xsl:if>
    0
    Comment actions Permalink
  • Avatar
    kenny

    Dan

    Thanks for the reply and the coding.  It worked perfectly.  Just a shame as I asked the question more than one year ago :{

    0
    Comment actions Permalink

Please sign in to leave a comment.