sysadmin42
Technical User
- May 6, 2005
- 138
hello. I am about to make a shopping cart. What I want to do is have each item have the power to do different things if they're in the cart. i.e. There's a website subscription item. After confirmed payment, it should insert the new subscription into the database. Or, there's a renewal item, it should use a different script to update the account in the db.
So far, all I can think of is to make a field in the db contain a script filename for each item, have a main script that loops through and calls each script until the cart is empty. Is this a good way?
What are your thoughts on how to go about the architecture of this cart?
So far, all I can think of is to make a field in the db contain a script filename for each item, have a main script that loops through and calls each script until the cart is empty. Is this a good way?
What are your thoughts on how to go about the architecture of this cart?