Email Repeat Region - i.e. Store Reciept

ZeePee
Posts: 2
Joined: 2012-01-24 14:23
Location: Australia

Email Repeat Region - i.e. Store Reciept

Post by ZeePee » 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

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

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

Post by Fred » 2012-01-25 13:55

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.

ZeePee
Posts: 2
Joined: 2012-01-24 14:23
Location: Australia

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

Post by ZeePee » 2012-01-25 14:43

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

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

Post by Fred » 2012-01-27 18:39

Sore point but good question.

Post Reply