Support » Plugin: TI WooCommerce Wishlist » Move ‘Add to Wishlist” button

  • Resolved goldmanas



    Is there a chance to move a “Add to Wishlist” button to other place? For example, I want to move it to ‘woocommerce_single_product_summary’ hook position, but I can’t figure it out how to do it. Is there a change to could add more options to admin panel, where that button can appear? Or maybe there is an easy way to do it but I’m not smart enough to figure it out πŸ˜€ Anyways, any response would be appreciated. Thanks.

    By the way, great plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author templateinvaders


    Hey goldmanas,

    To change the “Add to Wishlist” button position, you should:

    – Set the “Button Position” as “Custom position with code” in your admin panel to remove it from a current hook.

    – And add the next code somewhere in your functions.php file:

    $addtowl = new TInvWL_Public_AddToWishlist( TINVWL_PREFIX, '0');
    add_action( 'woocommerce_single_product_summary', array( $addtowl, 'htmloutput' ) );

    you can also add action priority into this code.

    P.S. We’ll add a public function for this button at feature releases.

    Kind Regards,

    Plugin Author templateinvaders


    Hi again!

    From the plugin version 1.1.9 you can use next code to hook button to another action:

    if ( function_exists( 'tinvwl_view_addto_html' ) ) {

    Kind Regards,

    Thread Starter goldmanas



    Sorry for long respons. Works perfectly. Thanks. πŸ™‚

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move ‘Add to Wishlist” button’ is closed to new replies.