Forums
(@jlightweb)
3 months, 1 week ago
I resolved it myself.Had to run:
add_action('init', function () { $checkout_page_id = (int) get_option('woocommerce_checkout_page_id'); if (function_exists('has_block') && has_block('woocommerce/checkout', $checkout_page_id)) { wp_update_post([ 'ID' => $checkout_page_id, 'post_content' => '', ]); }}, 20);
to completely remove the wc blocks from the checkout.
I’m using the [woocommerce_checkout] shortcode to display the checkout and I’ve customized the page with some action hooks. Is there a something I need to add? An html tag, class, ID?
Hi,
Thanks for your reply but no, that’s not it.