Further from my question from yesterday...
I have a number of elements, stored in a session variable, which I am using to build up a filter criteria string.
This seems to work ok.
I can then use the resulting recordset to populate the cart using ecart get from recordset server behaviour.
What I also need to do is count the number of each itemid in my string or array, so that I can use this to put the appropriate quantities of the respective id’s in the cart.
I appreciate this will take a bit of hand coding, but need a shove in the right direction.
For example, my filter criteria may say something like
“SELECT ItemID, `Description`, Colour, Price FROM tblitems WHERE ItemID = 2 OR ItemID = 5”
But I may have 3 instances of itemid 2 and 1 instance of itemid 5 to add.
I can extract this information from my session variable by manipulating the string or array, but can’t work out how to add these values to the cart.