Hi . .to all . . its Andrew again. :} So for a while - my site is working just fine - woocommerce is great - etc… and imreceived orders - the only problem is - i have an account with braintree - for CC payments - and all was working fine in the past - but since about aug this year . . my site is not allowing customers to enter the details of their credit cards - when they tick this payment option.
So i took it up with braintree . . and then with woo commerce themselves - as they actually own the plugin. - and i did the trouble shoot as they asked . . ( i switched theme to twenty sixteen ) - then i detracted all the plugins except woo commerce and brain tree - but no joy. so then they had a look themselves . .and they reported that the problem is a java conflict . . . and they sent me screen shots - of what they found - and to their understanding - they said it had something to do with themeco - google analytics plugin . . ( please see copy of her email below ) -
so i turned off all the google related plugins - and even deleted them from the system - but the problem persisted.
so after thinking as hard as i could - i did not understand -what was going on - and why this problem is still there.
Then i had an epiphany . . . . . .
I know that going through theme options - i can get to backend -where i can customize the CSS and or JS . . . .
and so i went into this. . . and found CSS code ( which i do not think is the problem ) - but then on looking at the JS code of customs JS . … well there was the code exactly as it was in the image of the error they showed me.
so i sent them the copy - of both files - and i asked them if they can let me know if i can edit the JS - or remove the conflicting code - to hopefully fix the issue . . .
but they tell me - this is a theme situation - and i have to contact them developer.
So can you please have a look at the custom JS - i have at the moment. please see below.
and hopefully get back to me - with what i can remove from this code - to get the payments working again :}}
thanks - andrew -
website - www.nailcrazy.com
problem - when you checkout - and choose CC payment - the site will not let you enter VISA details.
Global JS
(function(i,s,o,g,r,a,m){i[\‘GoogleAnalyticsObject\’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,\‘script\’,\’//www.google-analytics.com/analytics.js\’,\'ga\’);
ga(\‘create\’, \‘UA-41660438-1\’, \‘theme.co\’);
ga(\‘send\’, \‘pageview\’);
);
(function(i,s,o,g,r,a,m){i[\‘GoogleAnalyticsObject\’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,\‘script\’,\’//www.google-analytics.com/analytics.js\’,\'ga\’);
ga(\‘create\’, \‘UA-41660438-1\’, \‘theme.co\’);
ga(\‘send\’, \‘pageview\’);
);
the end of this file
PS - im happy to give you access not a problem ::}}
thanks
a
elinda Helt (Automattic)
Oct 2, 18:53 UTC
Hi Andrew
Thanks for doing the testing so far. I took a look a look at the site and found the following JS error in the console:
Image Link: https://cld.wthms.co/ba2H1A
When clicking on that error, it shows that it’s related to Google Analytics
Image Link: https://cld.wthms.co/8puV3U
My assumption is that there is an issue with the plugin X – Google Analytics by Themeco – 1.0.3 and/or with how you added Google Analytics to your site.
I would suggest first deactivating that plugin and see if that resolves things.
If that doesn’t, (and I know you said you did plugin conflict testing), but if that doesn’t help, I’d like to have you make a staging site (if you don’t have one, I recommend https://wordpress.org/plugins/wp-staging/. From there, deactivate ALL plugins except for WooCommerce an PayPal Powered by Braintree and give that a test. If it does not work. let us know.
If it does work, then turn on the other plugins, one at a time, testing after each activation until you find the one that is causing the issue.
Let us know how how it goes!
Melinda H. | Happiness Engineer
Melinda Helt (Automattic)
Oct 3, 12:23 UTC
Hi there
It does sound like this is a conflict within your theme files. We are not able to troubleshoot third-party themes, so I would suggest that you reach out to the theme developer for help with that.
If you added the code to a child theme, I would suggest removing the code and/or checking with the developer.
The reason I suggested temporarily changing your theme is that will tell you for sure if it’s the theme or if it is a plugin. That’s the only true way to test. Then you will know to check with the theme developer.
Hope this helps!
Melinda H. | Happiness Engineer