MX Kollection Forum :: Email With Repeat Regions - Store Receipt

This thread was displayed: 0 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Code Monkey
01-24-2012 16:08:00 GMT +2

Hello interAKT Online fans,

Well it's been some time now since all the changes but it's nice to see the 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 as an alternative have the hidden field posted the page it was sent from.

Example:

OK set the value of the hidden field to <?php $row_rsorder["product name"]; ?>

Now make sure you remove the invalid characters by added this string:

<?php echo htmlentities($row_rsorder["product name"]); ?>

This will remove commas and special characters and make sure the field is free of non html errors or invalid characters like this " which will create 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

Back | Reply | Quote | Top
Fred at ExelWebs.com
01-25-2012 15:40:15 GMT +2

Hi

Care to join us over here http://www.interaktonline.info

Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.