Monday, 1 September 2014

How to get customer group id by email id in magento

<?php
$con = Mage::getSingleton('core/resource')->getConnection('core_write');

$res=$con->query("select * from customer_entity where email = '".$rows['email']."'");

$rowss=$res->fetch();
echo $rowss['group_id'];
?>

No comments:

Post a Comment