First thing is to get the data out of Excel and into MySQL or PostgreSQL. Save as text, tab-delimited, create a table with appropriate structure, and load data local infile '/path/to/file/file_name.txt'.
Then you can create an application infrastructure in PHP to build your shopping cart.
Truthfully, though, if you're using Excell as a db ... creating a shopping cart might be a real stretch.