Plugin Author
RexAK
(@rexak)
The plugin throws errors, like any other gateway plugin, and your theme responds to those messages. There is no code that scrolls the screen, or displays the messages in any particular way. Its up to WooCommerce, and your specific theme to handle the messages. If you are comfortable, you can try switch on the developer options, and see if something works for you.
What theme are you using, and do you have a page I can take a look at?
I’m finding the following code in the bluebird.js file within the Card Connect plugin:
a.html(‘<ul class=”woocommerce-error”>’+i+”“),t([document.documentElement,document.body]).animate({scrollTop:t(“.payment_method_card_connect”).offset().top},500)
Plugin Author
RexAK
(@rexak)
Hi @ignitemedia
Hmm, that was something I was unaware of. I’ll talk with our dev to see if that dependency is needed any longer.
You are free to modify the plugin for your needs. It is open source. You would just need to take into account the modification when WP plugin updating happens.
Hi RexAK,
Any update on this? I don’t wish to modify the plugin – this will cause issues with future updates.
Thanks,
Nick
Plugin Author
RexAK
(@rexak)
Hi @ignitemedia,
We would not be able to modify the plugin for your specific needs. Our dev is aware of your request, and it will be up to him to decide if this dependency is still needed. We will be issuing a new version of the plugin shortly for compatibility with Woo and the latest WP. I understand this does not help you with your scrolling issue, however, I can say, that if you use the WC_CC_ADVANCED constant as outline on this plugin’s page, you may be able to get around the scrolling issue by using turning off the IFRAME version of the plugin – it does additional checks for errors which may be causing the scrolling in your case. I spoke with a CC rep today and there currently does not seem to be any plans on turning off the JS API.