How I can know if a buyer is a registered user?

04.10.2012 20:06
#1
festrada
Joomshopping forum user no avatar
Name: fer
21.12.2010
Posts: 36
Quote
How I can know if a buyer is a registered user?

Hello, I'm trying to make a payment is only available to registered users. How I can I know during the checkout process if the buyer is registered.
I have enabled the option to buy without registering.
thank you very much

 
09.10.2012 13:12
#2
festrada
Joomshopping forum user no avatar
Name: fer
21.12.2010
Posts: 36
Quote
Aw: How I can know if a buyer is a registered user?

I found how to do it

$user = &JFactory::getUser();
if ($user->id) {
print " USUARIO REGISTRADO " ;
}
else {
print " USUARIO SIN REGISTRAR" ;
}
?>

 
Copyrights MAXXmarketing GmbH. All Rights Reserved