Hello, I've been working on this for the past few days and I cant seem to find an answer.
I'm building a php script for an ecommerce site that sells computer components and systems. The way I'm dealing with systems is as a class containing all the components that make the system.
Here's the problem: The way I've got my code, everytime someone tries to view a new system, the old system that they may have customised is overwritten.
What I'm trying to find out is if there's any way to create a unique instance of the system class when a customer/user tries viewing a system and customising it. In this way, 2 system products can be stored as 2 separate instances of the class or 2 of the same systems customised differently can co-exist in the program without getting confused.
I've tried assigning something like the ID or parnumber to the system class instance, but that either creates a new class or overwrites the $id value I have.
Thanks in advance for any help you can give.
-Tim