• Resolved dgrnica

    (@dgrnica)


    I am adding the plugin in my custom theme, and trying to add the wishlist button in content-product.php but I can not find the way to call the function to render the button

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

    (@webtoffee)

    Hi @dgrnica

    Please try adding this code in your theme and let us know if any issues.

    <?php

    global $product;
    if ( ! is_object( $product))
    $product = wc_get_product( get_the_ID() );
    $wt_wishlist = new WT_Wishlist_Singlepage();
    $wt_wishlist->render_webtoffee_wishlist_button();

    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘add button on custom content-product.php’ is closed to new replies.