Thanks Mike! I actually had gone through your post before posting here, but that code snippet did not solve the issue. I have added that code in wp-config.php please correct me if I am wrong.
Does not work in all cases; some gateways output HTML which cannot be prevented.
What payment gateway is it?
Right now I have enabled only Direct Bank Transfer, I even tested the scenario with Check payment and other wallet system.
Leave bank transfer active and send me a link so I can check.
Mike, here is the test product link you can order and check link
Also you can use these test credentials while ordering, I have filled in all the customer details for you- mike/mike@123
“woo-authors” plugin is returning data where it shouldn’t.
Thanks a lot Mike! woo-author is my custom plugin which I am developing based on woocommerce, but I could not understand what kind of data it is returning here because I did not add any code related to checkout page in my plugin. Any clue??
It was a stylesheet. Enqueue it using the WordPress API functions.
I think I get it now. I have a custom style sheet which I added directly without applying enqueue. I will try to resolve this and let you know. Thanks anyway for your help.
Sorry for not getting back for so long. Thanks Mike! your solution worked for me. Instead of calling the stylesheets directly, I applied Enqueue and the problem is solved. Thanks again.
I’ve had the same issue recently.
I’ve tested on the following environment:
WordPress 4.3.1
WooCommerce 2.4.6
StoreFront theme 1.5
On a MAMP local install
I’m using a child theme that has just an index.php, styles.css and functions.php. By a process of elimination I found that the function I was using to override the checkout fields was causing the error.
add_filter( 'woocommerce_checkout_fields' , 'jmfe_override_checkout_fields' );
/**
* Remove Checkout Fields
* @since 0.0.1
* @return void
*/
function jmfe_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_country']);
unset($fields['billing']['billing_company']);
return $fields;
}
Is it possible that this function is causing the problem or could it still be something else?
Hi John,
The root cause for my issue was incorrectly Enqueuing the stylesteet in my custom plugin based on woocommerce. Not sure if the same root cause applies even for your issue.
Since this was a resolved thread, I think starting a new thread would get author’s attention if I am not wrong. Thanks
krishna89, I never thought it could be the enqueue for the stylesheet. Guess I better figure out how to enqueue it now cuz I can’t even get the add to cart button to come up. That of course is causing me sales. š
I get this error in Woocommerce while using even COD with all other gateways disabled regardless of whether debugging is turned on or off. When it is off I get “Internal Server Error”.