Woo Payment Method Grayed Out

The Woocommerce payment method section is grayed out. Everything else is working but this which is critical sales.

I have run a conflict test and spoken to Woo Coommerce support but it seems it is a theme conflict.

Site: www.ussolarpumps.com

Pleas help

Hello @Ralphmyes,

Thank you for the inquiry.

Did you recently migrate the site to HTML storage? Try adding this hook in the functions.php file to manually set the page as checkout page.

function x_custom_checkout_page_check() {
    $checkout_pages = array(
        'checkout',
    );

    if (is_page($checkout_pages)) {
        add_filter('woocommerce_is_checkout', '__return_true');
    }
}
add_action('template_redirect', 'x_custom_checkout_page_check');

If there are other checkout or payment pages in the page, you can add them in the $checkout_pages array. Let us know the result.

Let us know the result.

I didn’t do anything with HTML storage, just normal p lugin updates etc

Did you try the hook/filter above? Please provide the login details in the secure note so we can check this further.

I sent you admin login details.

I haven’t tried the hook yet as it is morning here and I have to run out a moment.

I will be back in two hours and can try it.

Thanks so much for the quick reponse and help

Thank you for the info. We tried adding the filter, but the Appearance > Theme File Editor is not accessible. We also tried adding it using the code snippet plugin, but it didn’t work. Please create a site backup, then try to deactivate all plugins except for Woocommerce and let us know the result.

Hi, not sure if this helps, but I had a similar problem where the checkout page was created in cornerstone, and woo shortcodes added there, it was greyed out. I had to delete that page, and regenerate it in woocomerce, and keep the standard page (ie, not create it in cornerstone but using the standard checkout page that woo creates) and it fixed it.

I checked and it looks like the page is not created in Cornerstone but the standard Wp editor.

I have de-activated all the plugins except for WC and nothing changed the payment section was still grayed out which would mean it’s a theme conflict and not a plugin conflict right?

ok I figured it out. After talking with the hosting tech, Woocommerce was triggering a ModSecurity rule. Its a false positive so he allowed the rule.

Hey @Ralphmyes,

It is good to know that your issue was resolved. We appreciate for sharing the information on what have caused the issue.

Cheers.