Hi,
So I have a shop set up using woo commerce and the authorize.net plugin.
I keep getting an error at checkout when enfold is turned on, it works fine if i have a default theme turned on. I think this has to do with the Accept.js Error: payment nonce is missing
The odd thing is that it works when I AM LOGGED in but it does not work when I am NOT LOGGED in.
Hey acscreativenew,
Sorry for the late reply. Did you test what happens when the parent theme is active? This function in your child theme looks a bit suspicious for example:
function defer_parsing_of_js( $url ) {
if ( is_user_logged_in() ) return $url; //don't break WP Admin
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
return str_replace( ' src', ' defer src', $url );
}
add_filter( 'script_loader_tag', 'defer_parsing_of_js', 10 );
Best regards,
Rikard
So I did text with the parent theme and it works.
I have alo tested the child theme with all plugins turned off and everything cleared from the functions.php file.
Hi,
Thanks for the update. I’m guessing that this problem is caused by the same customisation in your child theme as in your other thread. Please try removing the function I referred to above, to see if that changes anything. If not, then please try removing all your customisations, then add them back one by one, to see what is causing your problems.
Best regards,
Rikard