Paypal Express Button – remove for B2B Users in Cart
-
Hello!
We are using B2B Market from MarketPress and your Plugin PayPal Express Checkout Payment Gateway for our Website. We are using the Paypal Plugin to add the additional payment method in the checkout and to display the Paypal Express Button in the cart. Paypal Express is activated in the Woocommerce settings, however we need it to be disabled for B2B customers. We deactivated it for User Group B2B but the Express Button still appears in the cart. In the checkout it works fine, no Paypal checkout possible there for B2B users.
So in short, our problem is, that the Paypal Express Button appears in the cart for B2B users, although we have it deactivated for B2B user group.
We have already written to MarketPress and they given us this information:“The developers of the Paypal Plugin need to add a filter or another possibility for us to edit the execution of code in class-paypal-express-hook.php in line 10. At the moment there is this code at line 10: add_action(‘woocommerce_proceed_to_checkout’,array($this,’eh_express_checkout_hook’),20);
We can not access it with $this, so there either needs to be a filter for the array, a filter added to the function itself, or they could add a filter in class-eh-paypal-init-handler.php in line 33 like this: $this->hook_include=new Eh_Paypal_Express_Hooks();”Therefore we would be grateful if you could make the mentioned changes!
Thank you in advance!
- The topic ‘Paypal Express Button – remove for B2B Users in Cart’ is closed to new replies.