Check if user has registered
9 years 9 months ago #259091
by kyratn
Check if user has registered was created by kyratn
Hi,
What code i could use in the emails html version to check if user has registered?
We want to add some text or buttons which should be shown only for registered users?
Thanks
What code i could use in the emails html version to check if user has registered?
We want to add some text or buttons which should be shown only for registered users?
Thanks
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
9 years 9 months ago #259113
by Mohamed Thelji
Replied by Mohamed Thelji on topic Check if user has registered
Hello,
Using some code like this through the "preload" file of your email will probably help you :
And then you'll be able to display your custom text through your email HTML file by using that kind of code :
Using some code like this through the "preload" file of your email will probably help you :
Code:
$vars['CUSTOM_TEXT'] = '';
$user = JFactory::getUser( $data->customer->user_cms_id );
if (!$user->guest) {
$vars['CUSTOM_TEXT'] = 'Your Custom Text for registered users';
}
Code:
{VAR:CUSTOM_TEXT}
The following user(s) said Thank You: kyratn
Please Log in or Create an account to join the conversation.
9 years 9 months ago #259130
by kyratn
Replied by kyratn on topic Check if user has registered
Thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds