Is there a better way to send a gift certificate that was purchased online other than embedding it in the order confirmation? I know I can create one using an HTML template, but can I get that to automatically email when someone purchases a gift certificate online? I want it to send an email containing the gc separate from the order confirmation, similar to e-tickets and mobile tickets.
Our patrons are unhappy with the page breaks on the embedded version when they print it out.
We're on v16 and use TNEW.
Hi,We are still on V15 so I haven't had a chance to play with new HTML templates, but when I was playing with TNEW digital tickets a few years ago Google gave me: style="page-break-inside: avoid; break-inside: avoid-region;" So, the entire code looked like this: foreach (var ticket in response.Tickets) { index++; <div role="listitem" style="page-break-inside: avoid; break-inside: avoid-region;"> <h2 style="position: absolute; width: 1px; height: 0; margin: 0; padding: 0; white-space: nowrap; font-size: 9px; line-height: 0;">Ticket @index of @count</h2> @Raw(ticket.Html) </div> }Looking at my test emails from this time, it seems to work in Gmail but it is probably going to vary across Inboxs as these things do. The only other ideas that come to mind are custom procedure to email PDFs or some sort of a website solution.
- Jake