ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

How add repeater area field to custom email body?

Webpiksel 27 Apr, 2018
Hello, I have form like the picture below:
​
form.jpg
​
I want create custom email body, but I don't know, how add repeater area to it. Please help me🙂
​
email_body.jpg
GreyHead 28 Apr, 2018
Hi Webpiksel,
​
I would use a Custom PHP action before the Email action to loop through the Repeater data, build the HTML to display it and save that to the form data as a new item. Then you can display that whole item in the Email Body.
​
Bob
Webpiksel 28 Apr, 2018
I wrote simple php code like this:
for ( $i=0; $i<10; $i++ ) {
$nazwa = "rodzaj{$i}";
$nazwa2 = "ilosc{$i}";
if (!empty($_POST[$nazwa]) ) {
$wynik .= 'Rodzaj auta: <strong>'.$_POST[$nazwa].'</strong><br/>';
$wynik .= 'Ilość: <strong>'.$_POST[$nazwa2].'</strong><br/>';
};
};
How put $wynik to email body?
GreyHead 28 Apr, 2018
Answer
1 Likes
Hi Webpiksel,
​
Please see Page 34 in the CFV6 manual.
​
Bob
Webpiksel 28 Apr, 2018
It's works!
​
php.jpg
​
email.jpg
​
Thank you for your help!!
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com