Great! Now it works!
There is one little detail left: for each payment module or shipping module, I had previously set the rul to disable some of them (i.e. PayPal) if a customer was a wholesaler.
Now with your method this rule is not applied any more and I'd like to keep some modules for customers and others to be displayed only to wholesalers.
For example, I modified the file in /modules/payment/paypalwpp.php
Code:
$this->enabled = (MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');
To this:
Code:
$this->enabled = (MODULE_PAYMENT_PAYPALWPP_STATUS == 'True' && $_SESSION['customer_whole'] != 1);
Now this does not work... Any solution?
Thank you again for you help, I really appreciate.

Originally Posted by
mc12345678
Yeah, change:
Code:
$_SESSION['customer_whole']='1'
To:
Code:
$_SESSION['customer_whole']='1';
Bookmarks