Hi pieterh,
Andy J is right, you can’t have Repeater datasets persist across pages.
But what I would recommend is instead of actually adding/removing rows to a Repeater, you pre-fill the Repeater with all of your products and just filter out rows with a quantity of 0.
The result is that you are just updating each existing row to increment the “qty” column by 1.
Then you make a copy of this fully loaded Repeater on a new page and pass the quantities over using Global Variables and load those into the new Repeater OnPageLoad. Does that make sense?
For example, I have three items all with a quantity of “0”: “Item 1”, “Item 2”, and “Item 3”
While shopping, if I add “Item 1”, its quantity column is updated to “1”, and so on. Then the link to the “checkout” page sets three variables–“Item1tqy”, “Item2qty”, “Item3try”–to their respective quantities before linking. These values are conserved and then loaded into an exact copy of the Repeater.
I’ve made a crude demo file demonstrating this for you to check out. Is this close to what you are aiming for?
Let me know if you have any questions!
ShoppingCart.rp (78.7 KB)