• Resolved n381

    (@n381)


    Hello, need support from the authors,

    the hook’s settings from the plugin(positioning) are not applying on the front site, since the WP Theme i’m working with, is using a non-standard custom function hooks, the Theme is WP-Shopical 2.2.0.

    This the custom a theme-level, action hook “add_action(‘shopical_woocommerce_template_loop_add_to_cart’, ‘woocommerce_template_loop_add_to_cart’);”

    without any references to the standard “woocommerce_before_add_to_cart_button”, moreover even after i’ve added a custom action hook with reintroducing woocommerce button hook as “

    add_action( ‘woocommerce_before_add_to_cart_button’, ‘shopical_woocommerce_template_add_to_cart’ );

    function shopical_woocommerce_template_add_to_cart(){
    echo ‘

    Some text before’;
    }

    ” there is no appearing the added snippet(text) nor the plugins button. Can you please advice?

    Thank you, regards.

    • This topic was modified 1 year, 7 months ago by n381.
    • This topic was modified 1 year, 7 months ago by n381.
    • This topic was modified 1 year, 7 months ago by n381.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter n381

    (@n381)

    I’m working with WP 6.2 and Woocommerce 7.5.1.

    Thread Starter n381

    (@n381)

    To, update for further reference,

    the plugin is not hooking the button element via “do_action(‘woocommerce_before_add_to_cart_button’);”
    but instead by “do_action(‘woocommerce_after_shop_loop_item’);”.

    Thread Starter n381

    (@n381)

    With added action hook to a theme, the plugin is working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Regarding plugin settings to work aside the custom theme functions’ is closed to new replies.