Repeater-Based Dynamic Cart Content
I was playing some more with repeaters lately. This time I put together a dynamically updating Cart: a user can remove completely or update the quantity for any item. This then gets reflected in the Cart total.
To display the cart total at first, this information had to be hard-coded since there seems to be no mechanism allowing to iterate over row data in a repeater. If you found a way to do this, please share it!
See it live
Comments and suggestions for improvement are welcome as always!
Last edited by Paul Axure; 07-25-2013 at
The Following 3 Users Say Thank You to light_forger For This Useful Post:
easyishard (07-29-2013), Milkbomb (07-24-2013), Paul Axure (07-23-2013)
For a solution (well, more of a workaround) to iterating over items in a repeater (a foreach loop in a way), check out my post on this other thread:
Finding data from one Repeater to add to second Repeater
You can easily adapt the principle used there to loop through a repeater to your case of adding up numbers.
The Following User Says Thank You to jaern For This Useful Post:
By Luca Benazzi in forum 7.0 Technical Troubleshooting
Last Post: 01-02-2014, 03:32 PM
By melibrion in forum 7.0 Technical Troubleshooting
Last Post: 09-09-2013, 01:07 AM
By Jane in forum 6.x Archived Discussions
Last Post: 07-26-2013, 06:27 PM
By ericchao827 in forum 6.x Archived Discussions
Last Post: 05-04-2013, 11:09 AM
By martini in forum 6.x Archived Discussions
Last Post: 06-08-2012, 11:20 AM
Search Engine Friendly URLs by