• Resolved suitsjen

    (@suitsjen)


    I am trying to set up the purchase receipt and I can’t figure out how to include the name of the service they have purchased. I see all kinds of template tags for downloads, but my customers will be buying a service. I’ve tried using the word service and service_id but neither worked. I also tried using download_id thinking it would be the id for the service purchased, but no luck.

    I’m going for this (with the blank being the place I need help):

    {date}
    Dear {name},
    Thank you for your purchase of {_______}
    Invoice # {payment_id}
    Amount Paid: {price}?via {payment_method}

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    What you’re trying to do isn’t possible at the moment. The approach you want to take makes some assumptions based on information that isn’t available through the email tags.

    The way you’re wanting to use it assumes that either just one product was purchased, or you could specify a product that was [assumed to be] purchased… neither of which is ideal for such a general receipt. You could end up specifying a particular product in the receipt, and that’s not the product that the customer purchased. It just wouldn’t work.

    What I advise instead is adjusting that line to be more of a list heading, and then display the list of all purchases below the line. It wouldn’t matter if one product was purchased or three, it would still work.

    Thank you for your purchase of:
    {download_list}

    The {download_list} tag will list all products that were purchased. So even if it’s just one product, it would still make sense.

    And since you products are actually services, meaning there’s probably no file to download, you should also use the Downloads As Services extension: https://easydigitaldownloads.com/downloads/downloads-as-services/ Using that will make sure no references are made to downloadable files.

    Please let me know if that clears things up a bit!

    Thread Starter suitsjen

    (@suitsjen)

    Thank you for the quick response!
    I do have EDD Downloads as a service. That works!
    Thank you!

    No problem!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Display Service ID in Email Template Tags’ is closed to new replies.