Page 1 of 1

Email Repeat Region - i.e. Store Reciept

Posted: 2012-01-24 14:30
by ZeePee
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

Code: Select all

<?php $row_rsorder["product_name"]; ?>
Now make sure you remove the invalid characters by added this string:

Code: Select all

<?php echo htmlentities($row_rsorder["product_name"]); ?>
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

Re: Email Repeat Region - i.e. Store Reciept

Posted: 2012-01-25 13:55
by Fred
Just left you a response on the old interakt forum.
Didnt realise you already registered here.

Welcome and thanks for this post. I am just working on something similar.

Re: Email Repeat Region - i.e. Store Reciept

Posted: 2012-01-25 14:43
by ZeePee
Hi Fred,

Thanks for your response, glad to be onboard with your forum :D

inter-de-AKTive...It gets me asking the big question...now that Adobe has dropped Developers Toolbox just where have all those brilliant minds of InterAKT gone?

Sitting in an office in Romania getting bored or maybe creating a come back?

The mind can only wonder...just how long the restraint of trade with Adobe is for, do you also wonder?

ZeePee

Re: Email Repeat Region - i.e. Store Reciept

Posted: 2012-01-27 18:39
by Fred
Sore point but good question.