I am using B2B king on our website along with Woocommerce new Paypal Payments plugin. The problem that I appear to be having is when you reach the checkout stage and select "Paypal - Paylater" the 2 paypal buttons at the foot of the checkout appear but the "Place Order" button does not get hidden. Pressing it causes a processing error.
If the Paypal plugin i put into sandbox mode it works fine and the button disappears to prevent the error and confusion. I believe that B2B king may be conflicting as when you are logged out of the site as a B2C user the button also disappears and things work correctly. Only when logged in as a B2B king user does the button not vanish.
Is there anything you can do to help? Currently I'm having to use the Woocommerce Paypal Standard method to ensure payments work, which is proving confusing for some customers.
One thing you could do to test and check for sure if this is related to our plugin or not would be to:
- Disable the B2BKing plugin, and then test as that same logged in B2B user, to see if the button vanishes or not.
It could simply be related to logged in users in general.
But if indeed you find that the issue goes away with B2BKing deactivated, then would you be able to share a backend login to your site with us? (or to a staging clone site)? I will try to troubleshoot it and run various tests to see what exactly is going on - perhaps it's a conflict with one of our plugin's scripts.
I did wonder at first if it was to do with logged in users in general, or perhaps a mix of both. However, when I disable B2BKing the plugin the buttons show, change and hide correctly. When reactivating the plugin the yellow paypal buttons appear on every option under the payment options section. I did then look at the browser inspector and noticed an error;
This then made me check payment options in Woocommerce and sure enough when I disable 'Paypal Card Processing' as a payment option the problem goes away. So it looks like it's down to Woo's plugin from the looks of that?
I will get in touch with them, thanks for you help anyway :)
Please note that B2BKing also has a feature that controls the availability of payment methods for users. If you use that, make sure to enable the paypal method in B2BKing -> Groups for all groups, B2C / Logged out.
If you do not use this B2BKing feature, you can go to B2BKing->Settings->Other-> scroll down to Advanced:Endpoints&Components->Components and activate "Disable payment methods control"
It's possible enabling this setting will help fix the issue
I happened to come across a similar issue and I ended up troubleshooting and looking into it, so I want to give you an update.
It seems the problem is that B2BKing hides the "Credit Cards" option in checkout, which is leading to the error - (and why you disabling "card processing" fixed the issue).
I did 2 steps which have solved the issue:
1. I updated the plugin to the attached 3.9.7 version
2. I went to B2BKing -> Settings -> Other -> Advanced -> Components and I activated "Disable payment methods control".
This setting to disable payment methods control basically removes all B2BKing effects on payment methods - it also means you will not be able to disable/enable methods via B2BKing -> Groups (I don't know if you use that or not).
Hi,
I am using B2B king on our website along with Woocommerce new Paypal Payments plugin. The problem that I appear to be having is when you reach the checkout stage and select "Paypal - Paylater" the 2 paypal buttons at the foot of the checkout appear but the "Place Order" button does not get hidden. Pressing it causes a processing error.
If the Paypal plugin i put into sandbox mode it works fine and the button disappears to prevent the error and confusion. I believe that B2B king may be conflicting as when you are logged out of the site as a B2C user the button also disappears and things work correctly. Only when logged in as a B2B king user does the button not vanish.
Is there anything you can do to help? Currently I'm having to use the Woocommerce Paypal Standard method to ensure payments work, which is proving confusing for some customers.
Thanks
Tim
Hi Tim,
One thing you could do to test and check for sure if this is related to our plugin or not would be to:
- Disable the B2BKing plugin, and then test as that same logged in B2B user, to see if the button vanishes or not.
It could simply be related to logged in users in general.
But if indeed you find that the issue goes away with B2BKing deactivated, then would you be able to share a backend login to your site with us? (or to a staging clone site)? I will try to troubleshoot it and run various tests to see what exactly is going on - perhaps it's a conflict with one of our plugin's scripts.
Kind regards,
Stefan
Hi Stefan,
I did wonder at first if it was to do with logged in users in general, or perhaps a mix of both. However, when I disable B2BKing the plugin the buttons show, change and hide correctly. When reactivating the plugin the yellow paypal buttons appear on every option under the payment options section. I did then look at the browser inspector and noticed an error;
Uncaught TypeError: gateWayBox is null
render CreditCardRenderer.js:43
render Renderer.js:10
render CheckoutBootstap.js:58
init CheckoutBootstap.js:14
bootstrap button.js:58
<anonymous> button.js:85
EventListener.handleEvent* button.js:84
EventListener.handleEvent* button.js:75
94 button.js:1
<anonymous> button.js:1
<anonymous> button.js:1
CreditCardRenderer.js:43:32
This then made me check payment options in Woocommerce and sure enough when I disable 'Paypal Card Processing' as a payment option the problem goes away. So it looks like it's down to Woo's plugin from the looks of that?
I will get in touch with them, thanks for you help anyway :)
Please note that B2BKing also has a feature that controls the availability of payment methods for users. If you use that, make sure to enable the paypal method in B2BKing -> Groups for all groups, B2C / Logged out.
If you do not use this B2BKing feature, you can go to B2BKing->Settings->Other-> scroll down to Advanced:Endpoints&Components->Components and activate "Disable payment methods control"
It's possible enabling this setting will help fix the issue
Hi Tim,
I happened to come across a similar issue and I ended up troubleshooting and looking into it, so I want to give you an update.
It seems the problem is that B2BKing hides the "Credit Cards" option in checkout, which is leading to the error - (and why you disabling "card processing" fixed the issue).
I did 2 steps which have solved the issue:
1. I updated the plugin to the attached 3.9.7 version
2. I went to B2BKing -> Settings -> Other -> Advanced -> Components and I activated "Disable payment methods control".
This setting to disable payment methods control basically removes all B2BKing effects on payment methods - it also means you will not be able to disable/enable methods via B2BKing -> Groups (I don't know if you use that or not).
Kind regards,
Stefan