I've created a plugin that gets the entry_id's of the most popular selling items in the exp:resso store. I'd like to extend it by letting a user loop through each of those entries and output them on the page (much like the standard {exp:channel:entries} loop.
I can't find any documentation about how to pull together the right information within my plugin as in the example below.
At the moment my template tag:
{exp:expresso_store_most_popular_items category="2" limit="3"}
Exports a list of entry_id's of the most popular products eg:
12,13,2
How do I export each entry_id in such a way that i can be used as a tag {entry_id} in a loop such as in the example below:
{exp:expresso_store_most_popular_items category="2" limit="3"}
{exp:store:product entry_id="{entry_id}"}
{title}
{price}
{/exp:store:product}
{/exp:expresso_store_most_popular_items}
Any pointers much appreciated, thanks in advance.
Tom