Add To Favorites
Add To Favorites Button
Add the Widget to your page and the button will display.
Now your Visitors will be able to save all your favorite Posts or Products (as a Wishlist).
The Scope is the most important choice and there are three possibilities:
- Cookie, visitor's preferences will be stored in a Cookie, so confined in his computer/browser and he doesn't need to be registered. You can also set "Cookie Expiration" days to set the duration of the cookie.
- User, a registered user can save his preferences in his User Meta. It will be stored data in db for this specific person and it will be available from every device and moment until he removes it. This is the solution that many people are looking for.
- Global, is a community preference and like all preferences, it will be added and stored in db inside an Option. You can use this method to "Save post as Sticky" also.
Show counter: for Cookie and User scope you can visualize how many Users have saved a current post on theirs preferences (as a Facebook Like button).
NOTE: The Cookie scope counter may not be realistic sometime, because a visitor could delete his cookie and re-add it causing the increase of counter.
Favorite lists: you can create different Lists (like "Save for Later", "My preferred posts", etc) and for each of them you need to set:
- Key, that will be the unique name which identifies it in UserMeta or in Cookies. Pay attention when set it, because if you change it you will lose the preferences saved until now (they actually remain saved with the old key, but they will not be considered). It would be better to write it in lowercase, with _ instead of the spaces and avoid special characters;
- Title, the name of the button that will help you identify;
- Add e Remove Tabs, where you can decide the text of the Call to Action that you would like to show on the button. It. could also be accompanied by an icon.
- Hide the button for NON logged Users, so visitors will not see it;
- Force them to Login specifying the Login Url.
You can customize the content of:
- Add Success Messages: it will be shown when the user adds a current post in the list;
- Remove Success Messages: it will be shown when the user removes a previously added current post from the list.
Floating message: the notification is by default under the bottom. Enabling it, you will be able to place them on the page wherever you like it (top, middle, bottom, left, center, right).
How to Show the List
ATTENTION: this widget collects user preferences only.
To print the complete list of user preferences, you can use other specific Widgets for Posts Archive like Views Widget,
filtering all Posts in the Post saved list by their IDs.
Read from COOKIE
Read from User Meta
Depending on your scope, you can use different Values:
- [system:cookie:my_list_key], for Lists stored in Cookie;
- [user:my_list_key], for Lists stored in User Meta;
- [option:my_list_key], for Lists stored Globally.
Replace "my_list_key" with our own List key set on your widget.
List Users Saved Current Post in their User Meta
If you need to list all User that save Current Posts in their wishlist, you should use this setting: