marcq
Member
Fabrik : 3.5.1
Joomla : 3.5.1
Hi,
Sorry to bother with this issue, but I have no clue why it is not working.
I'm would like to add into my email template a else elseif loop to display or not specific informations with two conditions :
Which are radio-buttons values.
I was unable to get it work.
In my email template I have tested (var_dumped) if the values are returned, they are since the email generated is returning the values I'm looking for :
But when I'm using those values into a if elseif else loop, than the echoed value is always the "else" value -> nothing.
If I'm doing the following simple test :
The echoed values in the generated email are :
The correct value is always returned (3), the loop should echo 'YES' but still echoed is 'NO'.
No clue why it is not working, by the way I have tried several other ways to display the needed information without success, please see txt doc attached.
Would appreciate some help here.
Cheers, marc
Joomla : 3.5.1
Hi,
Sorry to bother with this issue, but I have no clue why it is not working.
I'm would like to add into my email template a else elseif loop to display or not specific informations with two conditions :
Code:
$type = '{gprh_fabrik_user_reminder___type_rappel_raw}';
$rappel = '{gprh_fabrik_user_reminder___no_rappel_raw}';
I was unable to get it work.
In my email template I have tested (var_dumped) if the values are returned, they are since the email generated is returning the values I'm looking for :
Code:
string(7) "type : " string(45) "3"
string(9) "rappel : " string(43) "1"
But when I'm using those values into a if elseif else loop, than the echoed value is always the "else" value -> nothing.
If I'm doing the following simple test :
Code:
<p><?php
$type = '{gprh_fabrik_user_reminder___type_rappel_raw}';
echo $type;
if ($type == 3)
{
echo 'YES!';
}
else
{
echo 'NO!';
}
?></p>
The echoed values in the generated email are :
Code:
3 NO!
The correct value is always returned (3), the loop should echo 'YES' but still echoed is 'NO'.
No clue why it is not working, by the way I have tried several other ways to display the needed information without success, please see txt doc attached.
Would appreciate some help here.
Cheers, marc
Attachments
Last edited: