Email Invoice Issue

I have downloadable products and have uploaded the files associated with these already as a zip folder. I am having 3 issues with this -

  1. In the system email invoice I have tried using the following fields but they don’t push the data into the email (although this is working on one of my other sites) -
    {{this.formSubmissionData.Fields.custom.Payment_ShippingAddress.value}}
    {{this.formSubmissionData.Fields.custom.Payment_ShippingCity.value}}{{this.formSubmissionData.Fields.custom.Payment_ShippingState.value}} {{this.formSubmissionData.Fields.custom.Zip_Code.value}}

  2. I can’t get the download product link to work as I have added it to the invoice. I have tried using https://www.company.com{{item.DownloadableFileLink}} but this doesn’t work and just sends the customer to the homepage.

  3. There is a second email that is sent to the customer that says ‘Here’s your download link’ but this link also doesn’t work as it just sends customers to the homepage of the website. Also, I can’t locate where this email is to edit it as it isn’t in ‘Sydney Emails’.

Anyone got any ideas about this?

  1. Is this site a live site and not yet on v5.4.1 perhaps?
  2. Try it without the domain name prepended. I think the generated link is an absolute link. Try and inspect the email code to see what is being output.
  3. Not sure. I haven’t seen anything about a dedicated system email for this. Does the Checkout form have an autoresponder enabled which might be doing this?

You are correct it is a live site and on 5.3.3. The other site where it is working is on the same.

The field https://www.company.com{{item.DownloadableFileLink}} is displaying as https://www.company.com/ in the email. I will try another test for just {{item.DownloadableFileLink}} to see if that works or not.

You are right that this autoresponder email is coming from the ‘Checkout’ form.

@SiroccoDigital, regarding the Shipping Address, there were some changes to this in release v5.4. So not sure if these might help, but these should be the new ones going forward:

{{this.order.shippingAddress.addressLine}}
{{this.order.shippingAddress.city}}
{{this.order.shippingAddress.state}}
{{this.order.shippingAddress.zipCode}}
{{this.order.shippingAddress.country}}
1 Like

Thank you @Adam.Wilson. And for future reference the download link needs to be {{item.productFileLink}}

2 Likes