1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Database design for ecommerce site

Discussion in 'Databases' started by adammc, Feb 13, 2007.

  1. #1
    Hi Guys,

    I am looking to design an ecommerce site with categorised products.
    Once built, I want my client to be able to add additional categories and be abel to add their products into their chosen category.

    Would I be best displaying this dynamnically after creating a table with the products category names in it or doing it static?

    Also, if I wanted to show a different header / meta tags for weach category how would I best tie this in?

    I have designed a few ecommerce sites in the past but have done it the hard way, creating each individual category page!

    Any advice would be GREATLY appreciated :)
     
    adammc, Feb 13, 2007 IP
  2. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Most of the databases I have seen have a table in it, say called categories. In this, it might have a category description, category title (maybe name to display if different than title), parent category (if you are supporting multiple categories), an order function so if the customer wants to order the categories a certain way, maybe to make the category active / inactive, and to show or not show on the home page
     
    Corey Bryant, Feb 14, 2007 IP
  3. JEET

    JEET Notable Member

    Messages:
    3,825
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #3
    What Corey suggested is probably the best way to go. In addition to this, you can also put in a meta tag field to store meta information for individual categories.
    Bye :)
     
    JEET, Feb 14, 2007 IP
  4. adammc

    adammc Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    great advice, thank you :)

    How would I then best build the page that shows the products and differnent metas in each category?
    I have done it the hard way in the past, creating static category pages.
     
    adammc, Feb 14, 2007 IP
  5. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You would use a server side language (ASP, .NET, PHP) to just pull the information from the databases
     
    Corey Bryant, Feb 14, 2007 IP
  6. Munk

    Munk Peon

    Messages:
    56
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Why write from scratch? I'd look in to x-cart (paid), zen-cart (open-source) or one of the many other available off-the-shelf packages.
     
    Munk, Feb 14, 2007 IP
  7. ruby

    ruby Well-Known Member

    Messages:
    1,854
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    125
    #7
    Check oscommerce.com, it is the best e-commerce solution with a massive forum and help there at your fingertips. I used oscommerce as the platform for my own online shop and we do very well.
     
    ruby, Feb 17, 2007 IP