alessandrosevera
Forum Replies Created
-
Forum: Plugins
In reply to: [Ultimate Product Catalog] Event on product list paginationwhat I need to accomplish is the preferred management by people who browse the site.
what I get to do is enter in each item in the catalog list a star (symbol for the favorite) clickable from the user to add or remove that item from his favorite list.
the problem is that the table “Favorites” is on my other database (I use for a mobile application) with whom I can interact through an API.
So when I add and remove an item of the plugin, from the table favorites, I have to do so via an ajax call.The problem that I have and that I have to solve now is to know, when you load the page containing the list of items, which item has a match in the Favorites table (and thus the star is on) or if there is match (and therefore the star must be turned off).
To do this I need to do more and an API call I can only do it in only two places:
– Or in the .php file and then in the function that the plugin uses to “compose” the list of items to display in the page
– Or by subscribing to an possible event that is raised when any individual item of the plugin are added to the listWhat I’m trying to understand is, this event exist?
I hope to be able to explain and also apologize for English definitely inaccurate, unfortunately, are not very good at talking about it and writing it.
Meantime thank you for the answer that you gave me.