Email Repeat Region - i.e. Store Reciept
Posted: 2012-01-24 14:30
Hello friends of interAKT,
Well it's been some time now since all the changes but it's nice to see this helpful forum is here, as I often refer to it, on a regular basis and still learn some tips and tricks from time to time.
A while ago I was stumped as to how to send an email with repeat regions, i.e. Shopping Cart receipt with muiltiple items or products....and here is my solution.
Create a hidden field on the page with the id (to say) "email_cnt"
!important: If the page sends your email on page load from say a custom form it must be triggered by post or have the hidden field posted the page it was sent from.
Example:
OK set the value of the hidden field to
Now make sure you remove the invalid characters by added this string:
This will remove commas and special characters and make sure the field is free of no html errors.
Now all you have to do is wrap a repeat region around the inner contents of your value in your hidden field.
Unfortunately some of us have had to turn to other outlets for our DW Extensions, if so and you are using eCart, you can just wrap a cart repeat region area around the value and use the cart values and not a record set value in the hidden field value.
Then on your HTML email template just add the field {POST.email_cnt} and see the muiltiple items appear on your e-mail.
Hope this helps someone out there
Thanks
Well it's been some time now since all the changes but it's nice to see this helpful forum is here, as I often refer to it, on a regular basis and still learn some tips and tricks from time to time.
A while ago I was stumped as to how to send an email with repeat regions, i.e. Shopping Cart receipt with muiltiple items or products....and here is my solution.
Create a hidden field on the page with the id (to say) "email_cnt"
!important: If the page sends your email on page load from say a custom form it must be triggered by post or have the hidden field posted the page it was sent from.
Example:
OK set the value of the hidden field to
Code: Select all
<?php $row_rsorder["product_name"]; ?>
Code: Select all
<?php echo htmlentities($row_rsorder["product_name"]); ?>
Now all you have to do is wrap a repeat region around the inner contents of your value in your hidden field.
Unfortunately some of us have had to turn to other outlets for our DW Extensions, if so and you are using eCart, you can just wrap a cart repeat region area around the value and use the cart values and not a record set value in the hidden field value.
Then on your HTML email template just add the field {POST.email_cnt} and see the muiltiple items appear on your e-mail.
Hope this helps someone out there
Thanks