Jump to content

Restrict Payment methods by group


Recommended Posts

Hi:
In my website i have 5 user groups. What i want is to disable to one of the user groups the option to pay with paypal so i went to payment methods and there in payment restrictions by group i disabled paypal for the desired group and saved (i checked and method is removed from ps_module_group). The problem is that you reload the cart logged in with a users that has that user group and paypal is still available. I returned to payment methods and the restriction another time appears and record has been inserted in ps_module group.

 

What is happening, why i cant disable it? Could be possible to modify the paypal.php file the hook hookPayment and put manyally there any check that group id instead of the backoffice option that seems that doesn't work well.

 

I'm using prestashop 1.6.0.5 and upgrade is not simple due i have a CRM desktop program that is no compatible with higher versions of prestashop.

 

Thanks in advance.
Best regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...