• Resolved nulumia

    (@nulumia)


    Hello, first of all this is definitely a great and much needed plugin for Woocommerce!

    I have a request for a possible future release of the plugin. I noticed that the default add_to_cart_button area on the product page is having it’s actions/hooks removed by the plugin. For example, in my functions.php I have some content being added to product pages using:

    add_action( 'woocommerce_after_add_to_cart_button', 'add_content_after_addtocart_button_func' );

    However on products affected by this plugin, this doesn’t appear. I solved it for now by manually adding:

    <?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>

    into your somdn-download-page.php file right before the closing </form> tag. It would be terrific if this and perhaps the ‘woocommerce_before_add_to_cart_button’ entry could be added in so these pages behave consistently with others.

    Looking forward to hearing back,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nulumia

    (@nulumia)

    As an update I found hooking into all four of these are missing for affected products:

    <?php do_action( 'woocommerce_before_add_to_cart_form' ); ?>
    <?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
    <?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
    <?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>
    Plugin Author Richard Webster

    (@rwebster85)

    Hi nulumia, I can do that no problem. I’ll probably put them outside of my added content, rather than just the form. Expect an update over the next few days or so ??

    If you get chance I’d appreciate if you left a quick review, would help me out ??

    Thread Starter nulumia

    (@nulumia)

    Hello, that’s terrific much thanks! Will absolutely leave a review for you.
    Cheers,

    Plugin Author Richard Webster

    (@rwebster85)

    This is now included in version 2.3 ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Request: Add back in default “add_to_cart_” hooks?’ is closed to new replies.