in reply to Need duplicate item entries in shopping cart
Frankly, this is so obvious that I think you must be asking a different question. Are you asking what a better data structure would be? I'd suggest you give each color a unique item_id, and create a higher-level entity (say, "product") to represent several items that are color variations of the same basic thing. Then your item_id will be unqiue and can be stored in the way you're doing it now.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need duplicate item entries in shopping cart
by b310 (Scribe) on Feb 19, 2003 at 19:05 UTC | |
|
Re: Re: Need duplicate item entries in shopping cart
by b310 (Scribe) on Feb 20, 2003 at 00:02 UTC | |
by perrin (Chancellor) on Feb 20, 2003 at 02:07 UTC | |
by b310 (Scribe) on Feb 20, 2003 at 14:32 UTC | |
by perrin (Chancellor) on Feb 20, 2003 at 18:09 UTC |