CodeIgniter Forums
How To Find Cheapest Item in Cart - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How To Find Cheapest Item in Cart (/thread-48126.html)



How To Find Cheapest Item in Cart - El Forum - 01-05-2012

[eluser]RMinor[/eluser]
I am stuck on how to return the cheapest product in a customer's shopping cart. I am pretty sure that you would use min() to do that, but I'm not sure. Has anybody had to do this before or does anyone know how to do it?