• Resolved marro9555

    (@marro9555)


    Hello, I have the problem that on a freshly installed WordPress website (without additional plugins) the hooks for the checkout page simply don’t work.

    As I said, I have freshly installed WordPress (latest version) and WooCommerce (latest version). No other plugins. And then tried out the standard themes like Twentyfour etc. None of the known hooks worked.

    I tried this hook:
    – woocommerce_before_checkout_form
    – woocommerce_after_checkout_billing_form
    – woocommerce_after_checkout_shipping_form
    – and more

    I can try what i want, and every Hook what i know – its not working. I was trying it with like:

    // Funktion für das Demo-Echo
    function mein_demo_echo() {
    echo ‘

    Dies ist ein Demo-Echo auf der Checkout-Seite!’;
    }

    // Hook vor dem Checkout-Billing-Formular hinzufügen
    add_action(‘woocommerce_before_checkout_form’, ‘mein_demo_echo’, 10);



    What i do wrong? Its a fresh installed WordPress Version without changes and the Hooks not working? With Php 8.1 and Php 8.2. I was trying 2 different Domains and Webhostings. Is the Hooks changed?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter marro9555

    (@marro9555)

    If anyone have the self problem, i found the solution:
    WooCommerce create now the Pages with the WordPress Blocks (omg). Open the Page and detlete the Blocks and add the Shortcode:
    [woocommerce_cart
    Then it will work again.

    And to WooCommerce:
    Why just why. Nobody use the Block-Editor S$$t Really so bad, omg.

    Hey, @marro9555!

    I’m glad you found the solution and thank you for sharing it here and contributing to the WooCommerce community. This might help other users in the future.

    Why just why. Nobody use the Block-Editor

    I’m sad to hear you don’t like the block editor, but it is used by a lot of users. While the blocks are the default, as you mentioned, it is still possible to change it and use the short code instead ??

    If you have any specific issues with blocks, please let us know so we can assist you further.

    For now, since you already solved the issue, I’ll close this thread, okay?

    Have a wonderful day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Checkout Hooks not more working’ is closed to new replies.