quick shopping cart question - how many web pages ?
Don't want to use an existing shopping cart - I've written a shopping cart back in 2003 and just need a quick refresher as I'm rusty and haven't use Coldfusion since then...
Background:
Website to sell following types of jewellery categories:
rings
bracelets
pendants
necklaces
Rather than create a web page for each category eg.
rings.cfm
bracelets.cfm
pendants.cfm
necklaces.cfm
Is it better to create a single web page, products.cfm, that encompasses the above? For maintenance purposes (eg. adding additional categories in future) this would seem the logical approach ?
Digging deeper into the workings of the single webpage, products.cfm, when a user clicks on 'rings' category, products.cfm is reloaded with the appropriate URL eg.
products.cfm?category=rings
the webpage, products.cfm, will contain coldfusion logic that picks this URL up and adjusts the SQL query so it only fetches the items that fall into the 'rings' category eg.
SELECT *
FROM products
WHERE category = rings
Am I on the right track ?
