ok, when I put this in it works great if the logged in user is in userGroup 13 (my coop group id), but when the person is not logged in it shows no price or add to cart field.
I added it right at the beginning after:
$first=true;
echo JText::_('PRICE_BEGINNING');
and before the foreach
am I not putting it in the right place?
I feel like maybe I need to make that statement an if and have the else be
$userGroups = JAccess::getGroupsByUser($user->id, true);
$inter = array_intersect($userGroups,array(1)); // where 1 is public group
with no array shift? but I keep breaking it and losing the add to cart block.
I REALLY appreciate the help on this. my customer brought this issue up to me again today so I really want to get it right if at all possible (and anything is possible if one knows php well enough?
)