SoI have been looking on here as well as googling and am unable to find any code that works for what I’m looking for.
I am wanting to have an image that you can click and it adds to your “Favorites” list. It would be based on each user and then be able to be displayed on a member page in a repeater box. I would like it to be able to be removed from your favorites as well by clicking a button.
Like i said i have searched everywhere for something that does not related to the wix store as that code does not apply if you’re not using the store, but if I overlooked something please just post the link to the instructions.
Why not generating your own → “Favourite-List”-Feature?
It is a list? → that means it will be a DATABASE!
You want to remove from list? → Then you remove the item from database.
You want to have it for each user? → Then you will have to filter the databse for a user-ID.
So your first step would be to generate a database and define all db-fields you will need.
-title (already predefined)
-owner-ID (already predefined)
-item-ID (already predefined)
Which processes you will need?
-saving/updating/inserting
-reading → query.
-filtering by a special VALUE in a special DB-FIELD if needed.
When do you know which user-ID is currently active?
Well for this you surely already have setted-up your Login-Code, which will tell you which user is currently active.
I would suggest you to start with generating a good structured DATABASE.
BTW: Of course you will also need a REPEATER, to show your stored DATA in your DATABASE (LIST).
Thank you for the quick response, I will give your suggestion a try. I am still very basic with my coding knowledge but with googles help I am sure I can follow your instructions and hope it works.
@russian-dima I also need this code! The structure you are showing is the one I need… However, for newbies like me, we need more specific instructions to follow. Is there a link to code the structure you are proposing here?