Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Aug 2019 08:30 PM by  Steve L
Voucher display in order alert email
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages


Basic Member


Posts:158
Basic Member


--
23 Jul 2019 07:16 PM
    Hello,

    I would like the voucher amount to appear on order alert email. Here's what i got

    Is this correct for the Voucher: {xsl:for-each select="in/salesOrder/salesPayments/voucherHint"}
    Here's the example of the Coupon: {xsl:value-of select="in/salesOrder/couponCodes" /}

    Please advise,

    Kenyatta

    0


    Veteran Member


    Posts:2957
    Veteran Member


    --
    15 Aug 2019 08:30 PM

    For vouchers, you need to loop the salesPayments and do a test to see if the salesPayment is of type voucher payment method (10).

    {xsl:for-each select="in/salesOrder/salesPayments/salesPayment"}
    {xsl:if test="paymentMethod = 10"}
    {xsl:value-of select="amount" /}
    {xsl:if}
    {/xsl:for-each}

    A coupon is not a voucher and it has no dollar amount attached to it.

    Thanks,

    0
    You are not authorized to post a reply.