Viewing 15 replies - 1 through 15 (of 24 total)
  • @smith234

    If the problem is intermittent, that may make it a little more difficult to troubleshoot.

    Have you tried clearing the browser’s cache or reseting the browser?

    Thread Starter smith234

    (@smith234)

    I noticed it is in all the browsers. Sometimes it would work some times now. It would pull up the area to put card info but no way to enter it.

    @smith234

    Do you still see the intermittent problem when you disable other plugins (except WooCommerce and PayPal Powered by Braintree) and use a default theme?

    Thread Starter smith234

    (@smith234)

    After testing I noticed it does this in all browsers. It pulls up the grey box and shows captions for number etc but not box to enter it. It wants to pull it. AFter refreshing several times it allows you to.
    After testing more, it will show the input boxes only when simpl commerce is enabled at the same time as this plugin. If disable simpl commerce it will not show up.

    @smith234

    I’ve examined the issue on my test site using WooCommerce, PayPal Powered by Braintree, and a default theme in Safari, Firefox, and Chrome. In each case, I can see the fields and enter data without a problem.

    https://cldup.com/wiUrNNNK33.thumb.jpg

    Did you test the issue as I previously recommended (i.e., running only WooCommerce and PayPal Powered by Braintree with a default theme)?

    If you did and are still having an issue, please submit a ticket here and we will take a closer look.

    @pmciano,

    Can you please advise on this issue?

    I have done everything you mentioned. I tested multiple browsers, I disabled all plugins but WooCommerce and PayPal Powered by Braintree, I changed to a default theme.

    I tried to submit a ticket at the link you posted but am not allowed to as I have not bought a plugin yet from woothemes.

    @pmciano,

    I believe I may have discovered the problem. It looks like there is a conflict with Woocommerce Subscriptions. When disabling this plugin, it works every time. When enabling it, the issue arises.

    This issue is present on both Woo Subscriptions 2.0.8 and the latest 2.0.13

    edit: I may have spoken too soon. Re-enabling my theme and other plugins brought back the issue despite leaving Woocommerce Subscriptions off. It seems this plugin really doesn’t play well with other themes and plugins

    @pmciano,

    After enabling logging inside checkout.js, I get Reference Errors inside the browser console.

    https://i.imgur.com/PR53YU0.png
    https://i.imgur.com/eBGQWQt.png

    Notice at the bottom of the second image, line 3 column 24247.

    If I refresh and the fields load correctly, this is what I get in the log

    View post on imgur.com

    Is there a way we can better communicate to fix this bug?

    Incase anyone is interested, a temporary fix I have found is to change this line:

    setInterval( checkSetup, 250 );

    to

    setInterval( checkSetup, 2000 );

    Within “wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/assets/js”

    @beaver316

    I tried to submit a ticket at the link you posted but am not allowed to as I have not bought a plugin yet from woothemes.

    If you sign up for a free account, you should be able to create a ticket:

    https://cldup.com/fADUD1tlHU.thumb.jpg

    Regardless of whether or not I have Subscriptions enabled, I am not able to replicate this issue on my test site:

    https://cldup.com/WAlKyMxc8A.thumb.jpg

    I’m glad that you were able to find a workaround, and if you want us to take a look at your site and its configuration, please try submitting a ticket, as previously recommended.

    Thanks for the setinterval bandaid! That works beautifully.

    It looks like the checkout.js script has an external dependency. I would guess at least part of the issue is that checkout.js times out before the external script loads, or the external request takes longer than the internal request and causes timing issues. This also correlates to the users who are seeing load issues on mobile browsers or slow connections.

    wp_register_script( 'paypal_braintree', 'https://js.braintreegateway.com/js/braintree-2.24.1.min.js', array( 'jquery' ) );
    if ( $should_enqueue_checkout_script ) {
    	wp_register_script( 'gateway_paypal_braintree', plugins_url( 'assets/js/checkout.js', __FILE__ ), array( 'jquery', 'paypal_braintree' ) );
    } else if ( $should_enqueue_cart_script ) {
    	wp_register_script( 'gateway_paypal_braintree', plugins_url( 'assets/js/cart.js', __FILE__ ), array( 'jquery', 'paypal_braintree', 'jquery-blockui' ) );
    }

    @beaver316 Thanks for suggesting the temporary interval fix. I tried that, but unfortunately it didn’t solve the issue. Do you think I should set it to be a higher number? I’m not a coder so I’m just following in everyone’s footsteps. Thanks!!

    Honestly I’m not sure. The devs themselves haven’t pinpointed exactly the cause of this issue. Eventually I moved on from this plugin because I later found that this bandaid didn’t work reliably on mobile.

    @beaver316 I see. What plugin did you end up moving onto? (any chance it works for WooCommerce Subscriptions?) I’m considering moving on if the recent update that they released doesn’t fix the problem.

    I moved on to ‘Braintree for Woocommerce’

    https://www.ads-software.com/plugins/woo-payment-gateway/

    It’s a paid plugin, but 100% worth it. The best support out there, and imo the best plugin for braintree. And yes it supports Subscriptions.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘cc not showing fields sometimes’ is closed to new replies.