• Resolved jubilo

    (@jubilo)


    It is possible to limit the list to a maximum of 5 products. This means that users can only add 5 products per list. Is this possible?

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

    (@templateinvaders)

    Hi @jubilo,

    Our plugin has a hook that could be used for your case.

    Check the draft code below:

    add_filter('tinvwl_addtowishlist_not_allowed', 'tinvwl_not_allowed');
    
    function tinvwl_not_allowed($not_allowed)
    {
     if (5 < TInvWL_Public_WishlistCounter::counter()) {
     $not_allowed = true;
     }
     return $not_allowed;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Max items per list’ is closed to new replies.