View Single Post
  #12  
Old 09-08-2015, 10:47 PM
 
plh plh is offline
 

Senior Member
  
Join Date: May 2004
Posts: 102
 

Default Re: Hide the price on the storefront

Hello Alex,

When products are marked with a specific membership they are not showing.

When products are not marked with a membership class they do show up with prices as soon as someone register, meaning someone entering any kind of information for email and password. The ideal would be for a customer to register and pending admin change of membership prices do not show up.

I failed to find: \XLite\Controller\AController class. Do you mean Classes\XLite\Controller\AController.php? and change:

/**
* Check if current user is logged in
*
* @return boolean
*/
public function isLogged()
{
if (is_null(static::$isLogged)) {
static::$isLogged = \XLite\Core\Auth::getInstance()->isLogged();
}

return static::$isLogged;
}

How do I change it to reflect: Check if Wholesaler is logged in, after admin has changed the user status to "Wholesaler"?

Philippe
Setting up 5.2.6
__________________
X-Cart 4.4.3
- Happily EWD Hosted -
Reply With Quote