How about on the page where you can buy a tv (or any other product) create hidden fields that are like this:
<input type="hidden" name="prod_name" value="tv">
<input type="hidden" name="prod_price" value="200">
Then, when they push buy it takes them to the php page that is something like this:
<?
print "You bought a $prod_name, and you lost $prod_price dollars."
?>
So, when they clicked "Buy" on the tv page, it would say:
"You bought a tv, and you lost 200 dollars."
You would just need to modify each of the individual product pages buy changing the values. It will take a while, but it would take up less space, in terms of files.
Hope this is what you were needing!