• Resolved JasperPress

    (@jasperpress)


    Hi there!

    I would like to move the product sample button without hacking into the plugin itself.

    I tried to add this to my functions.php but it didn’t work:

    remove_action('woocommerce_after_add_to_cart_form', 'product_sample_button');
      add_action('woocommerce_after_add_to_cart_button', 'product_sample_button');

    Anyone any better ideas?

    https://www.ads-software.com/plugins/woocommerce-sample/

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

    (@isikom)

    you need to add something like this:

    add_action('woocommerce_after_add_to_cart_button', array('WooCommerce_Sample', 'product_sample_button'));

    remove_action seems not works but you could hide the default button via CSS

Viewing 1 replies (of 1 total)
  • The topic ‘Moving "add sample to cart" button’ is closed to new replies.