Form Code on different templates

bart6 12 Jul, 2010
Hi,

is a possible to make different php statements on different mail templates?
I have two mail templates and the one should be formatted well for the customer and the other should have a special formatting.
I could't find any special CF Variable to get the different templates!

thanks,
b
GreyHead 12 Jul, 2010
Hi bart6,

The two templates are completely separate, you can edit both of them in any way you like.

Bob
bart6 12 Jul, 2010
Yes, I can edit them but I want to make different post processing on them via PHP.

Is this possible?
bart6 12 Jul, 2010
oh my gosh.

Now I have it. I can set another variable and show only the variables I want to.

For example:

if (JRequest::getVar('agree', '', 'post')) {
 JRequest::setVar('variable1', 'yes', 'post'); // for template 1
 JRequest::setVar('variable2', 'YES', 'post'); // for template 2
}


Thanks.
This topic is locked and no more replies can be posted.