numero = 23742
interpreted = N
texte = >Hey guys! Has anyone had to deal with color options for database items>with WebCatalog?>>I have a database (~200 items) of items that each have their own color>options (2-6 colors for each item). When someone wants to buy an item,>they have to choose the color. Each item has unique colors, and each has>a different number of color options as well.>>I'm new to this, and I don't know how to have WebCatalog handle this.>Can anyone provide ideas??>>Teresa L. Schmidt>The Northwoods.com>You connection to Northern Wisconsin begins with www.thenorthwoods.com!>(715) 356-7399>Fax: (715) 358-8886>teresa@thenorthwoods.comTeresa-I have actually just set up a fairly intense WebCat-based shopping cartsystem that does this. Without writing a novel, here how it works:1) Each product in my catalog has information that remains the same, nomatter what size or color it is (name, description, etc.). All of thisinfo is kept in one db called products.db Each product listed in theproducts.db has a minsku value that is unique to each product.2) I have several other db's that are named: manufacturer.db, size.db andcolor.db that consist of two fields manid and manname or sizeid andsizename or colorid and colorname These are how I map the variablenames to their associated id.3) I then created another db called price.db that stores the followinginfo: - sku (this is autogenerated by combining the[manid]-[minsku]-[colorid]-[sizeid]) - colorid (obvious) - sizeid (obvious) - price (price for this specific sku... in my catalog, prices canchange based on size) - minsku (obvious) - weight (to be used for calculating shipping charges, and for back-endpurposes)4) On my product detail page, I have a whole lot of lookups andsub-searches that occur that generate an
menu for the user toselect which of the variables for that product they want. Here is my HTMLcode for this:------------------------------You can probably see how I can easily also add a lookup to the pulldownmenu for a color name, if I had products that have different colors foreach item. To see this in action, check out our test site (this hasn'tgone public yet) at: http://www.greenmarketplace.com/greenmarket/test2/(please realize that the db names above have been changed to protect theinnocent).I also have developed an entire forms-based administration control areathat allows an admin to add/edit/delete any item from any of the databaseslisted above.Not to advertise, but if this is over anyone's head, and you need a systemto do this on your site, please let us know, as we are webslingers for hire.Josh Knauerhttp://www.knauer.com412-420-6400 -phone412-420-6404 -faxP60E7 A28B 91C0 E5D3 EC5C A53F DB28 B350
Josh Knauer
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...