Home Forums WoodMart support forum Certain Checkout Hooks Not Triggering

Certain Checkout Hooks Not Triggering

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #553643

    keremduran.fw
    Participant

    I have tried adding a couple add_action hooks in the functions.php of the Plants Child Theme but I’m not getting any results in the checkout page. Hope you could help me understand what is happening here.

    Hooks I’m mentioning:

    woocommerce_before_checkout_form
    woocommerce_checkout_before_customer_details

    I tried to look at the theme code but couldn’t see where is the problem. The hooks are working when I change the theme.

    Am I missing something obvious? I can do what I want to do with inserted JavaScript in the other hooks working at the moment such as ‘woocommerce_before_checkout_shipping_form’. However, it seems fragile, and I don’t want to go live without fully understanding what is the underlying problem here.

    I’m currently using the Plants theme.

    Thank you!

    #553644

    keremduran.fw
    Participant

    Sample code I’m trying to run:

    add_action(‘woocommerce_before_checkout_form’, ‘hizlicicek_test’, 10000);

    function hizlicicek_test() {
    echo “TEST 123123123”;
    }

    #553895

    Hung Pham
    Keymaster

    Hi keremduran.fw,

    Thanks for reaching to us.

    First of all, take my apologies for the delay in answering because of the weekend.

    WoodMart has a special widget called Hook in Elementor that you can place to your custom layout and then the plugin will be able to add its custom content there. But I don’t know which one exactly it needs. You can either try to select all hooks one by one or contact plugin developers for help.
    https://xtemos.com/docs-topic/custom-hooks-and-plugins-compatibility/

    Please note that we do not give a guarantee for full theme compatibility with all existing 3rd party plugins. Sometimes, not always, you need additionally customize the theme or plugin to make them work together. Unfortunately, it’s not possible for the author to make the theme compatible with all the existing plugins and additional customization is outside the scope of our basic support.

    Regards,

Viewing 3 posts - 1 through 3 (of 3 total)