Last active
August 29, 2015 14:06
-
-
Save gunjanpatel/d8643fc169590f54fabf to your computer and use it in GitHub Desktop.
get redshop shopper group from joomla user id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once JPATH_SITE . '/components/com_redshop/helpers/user.php'; | |
$rsUserhelper = new rsUserhelper; | |
$shopperGroupId = (int) $rsUserhelper->getShopperGroup(JFactory::getUser()->id); | |
$shopperGroup = $rsUserhelper->getShoppergroupData(JFactory::getUser()->id); | |
// 0 if no parent else parent id | |
$shopperGroupParentId = $shopperGroup->parent_id; | |
echo "<pre>"; | |
print_r($shopperGroup); | |
echo "</pre>"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment