• Plugin Author WPClever

    (@wpclever)


    To integrate with a theme, please use bellow filters to hide the default buttons.

    //hide default wishlist button on product archive page
    add_filter( 'woosw_button_position_archive', function() {
        return '0';
    } );
    
    //hide default wishlist button on product single page
    add_filter( 'woosw_button_position_single', function() {
        return '0';
    } );

    After that, use the shortcode to display the button where you want.

    echo do_shortcode('[woosw id="{product_id}"]');

    If have any difficulty, feel free to contact us via contact page then we will do it for you for free ??

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

    (@wpclever)

    To add the wishlist button on the header ( like this https://prnt.sc/jjbw65 ), you can use the code:

    WPcleverWoosw::get_url(); //for the wishlist page URL
    WPcleverWoosw::get_count(); //for the wishlist count
    

    After that, use Javascript to change the count when adding/removing the product on the wishlist:

    jQuery( document ).on( 'woosw_change_count', function( event, count ) {
    	//do something with the count
    } );
    
    • This reply was modified 6 years, 6 months ago by WPClever.
    • This reply was modified 6 years, 6 months ago by WPClever.
    • This reply was modified 6 years, 6 months ago by WPClever.
    • This reply was modified 6 years, 6 months ago by WPClever.
    • This reply was modified 6 years, 6 months ago by WPClever.
Viewing 1 replies (of 1 total)
  • The topic ‘How to integrate with my theme?’ is closed to new replies.