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 16 May 2023 04:05 PM by  Steve L
Voucher amount on invoice
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages


Basic Member


Posts:158
Basic Member


--
11 May 2023 01:15 PM

    Hello,

    How do I get the total voucher amount to display on my invoice? Example: Voucher: ($150)

    Gift voucher    JNRB  $50.00
    Gift voucher    FNND  $50.00
    Gift voucher    TEIC  $50.00

    This is what I added 
    <td>{xsl:value-of select="in/salesOrder/formattedTotalVoucherAmount" /}</td>

    Please advise,

    Kenyatta

    0


    Veteran Member


    Posts:2956
    Veteran Member


    --
    12 May 2023 05:04 PM

    hi Kenyatta

    Are you trying to set the email template for the Invoice when someone buys the vouchers (gift cards) or when someone pays with a voucher?

    There is also the email template for Voucher receipt, when someone buys a voucher (gift card) from your site. I'm not sure which email you're referring to exactly.

    https://www.revindex.com/...oucher-receipt-email

     

    0


    Basic Member


    Posts:158
    Basic Member


    --
    12 May 2023 05:31 PM

    Hi,

    When someone pays with a voucher. They tend to use multiple vouchers during checkout. 
    This is at the end of the paid invoice. 

    Voucher: - nothing appears here and I would like to see the amount of the voucher they used. 

    Coupon: crownvip

    Discount: $0.00

    Total Savings: ($300.00)

    Sub-Total: $1,785.00

    0


    Veteran Member


    Posts:2956
    Veteran Member


    --
    16 May 2023 04:05 PM

    Depending on the Storefront version you're running, you may want to Reset your email template and Save (take a copy of your template first before overriding).

    The latest template should already include the following code near the the top that lists out voucher payments. Look for the following text (this is available in the default email Receipt or Invoice template). Notice it loops over the salesPayments node inside a for-each because there could be multiple payments (even multiple vouchers).

    <td>{xsl:for-each select="in/salesOrder/salesPayments/salesPayment[transactionType = 1 or transactionType = 2]"} {xsl:value-of select="paymentMethodName"/}&nbsp;{xsl:value-of select="creditCardHint"/}{xsl:value-of select="paymentHint"/}{xsl:value-of select="voucherHint"/}&nbsp;{xsl:value-of select="formattedAmount" /}
                    <br />
      {/xsl:for-each}</td>

     

    I tested a transaction and it emailed me a receipt with the following text:

    Gift voucher VMBB $10.55

     

     

    0
    You are not authorized to post a reply.