I've got some problems with coding a addProductsToCart function on a standard button.
The dataset is filtered with the field that I want on a dynamic page.
I'm looking for "automating" the function so that I don't have to write all the _Id for each products that I want to add to cart ...
Do you think it's possible ?
This is the code I've written :
In this example, there are 5 filtered Products in the database but some other page have 20...
I've done this for a single product and it works very well with the .getCurrentItem() function...but it's only for one _id...
This is the code I use for single one product :
Thank you for your help,