How to simulate buying a product?

I am trying to create a mock app for buying a product. Pls see the snapshot below. There are 2 products shown. Each is stored in an appery collection as an array (in a column) with various attributes like product description, price, image etc.

Page uses a grid and shows a buy button for each product.

Now my problem is how to associate a particular button to a particular product. That is - if I press top button then I should be able to buy the top product.

So how to make sure that pressing the first button initiates actions for the first product in the array? Pressing 2nd button should lead to action on the second product in the array?
1 person has
this question
This topic is no longer open for comments or replies.