Osclass Support Forums

Osclass plugin support => Favorite Items Plugin => Topic started by: vansebas on April 08, 2021, 07:58:39 PM

Title: Favorite icon only visible for registered users feature/addon?
Post by: vansebas on April 08, 2021, 07:58:39 PM
You can only add favorites when you are a registered user and when you are logged in in your account.
But when your not logged in in your account you also see the favorite icon on the listing and when you click on it you see the text "listing has been added to your favorites" only nothing happends.

Maybe it would be better to only show the favorite icon when you are logged in or make the click action on the favorite icon only work when you are logged in and otherwise show a message like "you need a account in order to mark favorites".
Title: Re: Favorite icon only visible for registered users feature/addon?
Post by: MB Themes on April 09, 2021, 10:37:33 AM
@vansebas
That is correct, as list of favorited listings is in plugin under user folder that does not allow non-logged users to get there.
Title: Re: Favorite icon only visible for registered users feature/addon?
Post by: vansebas on April 09, 2021, 08:07:21 PM
Yeah that is working lovely, but wouldn't it be better to only show the favorite icon on the listing only for logged in users?
Title: Re: Favorite icon only visible for registered users feature/addon?
Post by: MB Themes on April 09, 2021, 08:32:09 PM
I do not see reason for that. For nonlogged users, their id is created and stored in cookies and they can use basic functions of plugin