• Hello,

    I use the following code to move notice below the button of ” Add to Cart”:

    remove_action( 'woocommerce_single_product_summary', 'crwcpn_product_notice_display', 12 );
    add_action( 'woocommerce_after_add_to_cart_button', 'crwcpn_product_notice_display' );
    

    But, everytime to activate it, and refresh the page, it still show not activated:

    https://prnt.sc/G3XxfWWNDRRg

    There are several code snippets running properly, but I only can not activated that one.

    Could you please check if there is anything wrong with the code lines?

    Or, any suggestion to fix the issue?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author CloudRedux

    (@cloudredux)

    Hi @alexliii,

    We will need more details on what are you trying to do and what kind of customization are already in place. The code you shared should work just fine if no other customization has been done to default hook location where the plugin runs the notice display functionality.

    It is critical to understand how hook name/location and priority matters and can make or break the callback functionality attached.

    Did you try to run it with default compatible theme, bare minimum plugins and can verify if you are still facing the issue? You could also try deactivating other “Code Snippet” snippets and give it a try to see if previous rules are overriding this snippet?

    If you need specific help with code and/or how to make it work, feel free to drop in an email to us at [email protected] and we can take it from there.

Viewing 1 replies (of 1 total)
  • The topic ‘Code snippets can not be activated’ is closed to new replies.