Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Hiding payment options (customer credit) for some users View modes: 
User avatar
Member
Member
mick-intelli-link.co - 7/2/2009 4:43:37 AM
   
Hiding payment options (customer credit) for some users
Hi,

I would like to add a 'Customer Credit' option for payment that is only visible for preferred customers (must have a login on the site), but hidden from all other users.

I can't see anything in the documentation that allows the payment methods available to be modified depending on the login permissions of the user. Is there a way to do this?


Cheers,
Mick

User avatar
Member
Member
kentico_pavelk - 7/7/2009 8:26:46 AM
   
RE:Hiding payment options (customer credit) for some users
Hi Mick,

I would recommend you to modify InitializePaymentList method in <your project>\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartPaymentShipping.ascx.cs. If the customer isn't also user of the site, you can remove this option from the dropdownlist. So basically, the payment
method is enabled but it is displayed only to appropriate customers.


Best Regards,
Pavel Knotek

User avatar
Member
Member
mick-intelli-link.co - 7/10/2009 4:59:24 AM
   
RE:Hiding payment options (customer credit) for some users
Thanks Pavel,

I have added a user role for these 'vip' users and only add the 'custome credit' option for users assigned that role. Works nicely.