Support » Plugin: WPC Smart Wishlist for WooCommerce » Wishlist count icon

  • Resolved vladoff9

    (@vladoff9)


    Hello! I have applied this shortcode

    function custom_wishlist() {
    	$url = WPcleverWoosw::get_url();
    	$icon_html  = "<div class='menu-item woosw-menu-item menu-item-type-woosw'><a href='{$url}'>";
    	$icon_html .= '<span class="woosw-menu-item-inner" data-count="0"><i class="fas fa-heart"></i> <span>Wishlist</span></span>';
    	$icon_html .= '</a></div>';
    
    	return $icon_html;
    }
    
    add_shortcode( 'wishlist', 'custom_wishlist' );

    Link to post:
    But it always shows one value “0”
    Please tell me how you can fix this?

    • This topic was modified 9 months, 1 week ago by vladoff9.
Viewing 1 replies (of 1 total)
  • Thread Starter vladoff9

    (@vladoff9)

    The issue has been resolved. There was a mistake!

Viewing 1 replies (of 1 total)
  • The topic ‘Wishlist count icon’ is closed to new replies.