Home » Shopping

How Do I Group Items In A Shopping Cart. When You Have One Item And Other Items Are Added As Accessories?

4 July 2009 40 views One Comment

For example. In the Build a Bear website. You are able to Choose a bear then add accessories to it. But if you want a second bear you want to make sure all item are assigned to the right bear. In the Buid a Bear shopping cart. These items are Grouped, so there is one bear with a set of accessories and another another with its set. Seperating each set of items in groups. How is this done?

One Comment »

  • EdSF said:

    Look into a “master / detail” data relationship.
    This is common in databases – it’s similar to a contact or personnel database. You have a bunch of employees, but they are all “grouped” into different departments.
    So Joe and Jane are employees. They are both in Engineering. So if you look up Engineering, you can only choose Joe and/or Jane.
    The shopping cart metaphor is simply one way to present the data view to you.
    You’d have to correctly “normalize” your database to accomplish this – re: knowing how to put/arrange data so that you have less repetition and maintain uniqueness among tables.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.