Re: Menu to select product variations

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15795
interpreted = N
texte = >In your main product database have fields named Sizes and Colors, set >the value of the field to T, if not, F. Create a new color database >with three fields sku color, and order. Likewise, create a new size >database. Enter the sku for your main product as the sku in the database.I've done this except I also created a field called Title. I can't use SKU as you have because every color/size variation uses a different SKU, but all variations share the same product name, ie Title field. One catch I'm running into is that the SKU for the variation needs to be passed to the shopping cart.>On your product page, have a [showif] tag that checks the product color >field to see if it's true. If it is, do a search in the color database for >all the colors associated with that product, sorted by the order field. >Use the [founditems] loop from this secondary search to build the pop-up >menu.The Title field in my Size.db is same data as Title field in my Catalog.txtHow do I get the variations' SKU from the Size.db to the shopping cart?Here what I have now that puts the sizes on the page but not in a menu and apparently not sorted:[showif [Size]=T] [search db=Size.db&eqtitledata=[title]&Ordersort=de] [/search] [/showif]Any more suggestions? Associated Messages, from the most recent to the oldest:

    
  1. Re: Menu to select product variations (Grant Hulbert 1997)
  2. Re: Menu to select product variations (Jim Turney 1997)
  3. Re: Menu to select product variations (John Hill 1997)
  4. Re: Menu to select product variations (Kenneth Grome 1997)
  5. Menu to select product variations (Jim Turney 1997)
>In your main product database have fields named Sizes and Colors, set >the value of the field to T, if not, F. Create a new color database >with three fields sku color, and order. Likewise, create a new size >database. Enter the sku for your main product as the sku in the database.I've done this except I also created a field called Title. I can't use SKU as you have because every color/size variation uses a different SKU, but all variations share the same product name, ie Title field. One catch I'm running into is that the SKU for the variation needs to be passed to the shopping cart.>On your product page, have a [showif] tag that checks the product color >field to see if it's true. If it is, do a search in the color database for >all the colors associated with that product, sorted by the order field. >Use the [founditems] loop from this secondary search to build the pop-up >menu.The Title field in my Size.db is same data as Title field in my Catalog.txtHow do I get the variations' SKU from the Size.db to the shopping cart?Here what I have now that puts the sizes on the page but not in a menu and apparently not sorted:[showif [Size]=T] [search db=Size.db&eqtitledata=[title]&Ordersort=de] [/search] [/showif]Any more suggestions? Jim Turney

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

shipcost (1997) WebCat2b15MacPlugin - [protect] (1997) Bug Report, maybe (1997) splitting numbers in webDNA? (1997) WebCat, switching from NT to OSX (2003) Emailer setup (1997) problem (how to mark orders as 'opened') (1998) search across ip/domain addresses? (1998) Updating one table with another (1998) hideif [x]=1,2,3.. (2003) vs (1997) Adding multiple items to Cart at one time, & append contextproblem (1998) Upgrade to 4.0 (2001) grep matching (2003) 4.5.1 (2003) [WebDNA] webDNA and JSON (2011) SSL, WebSTAR, WebCatalog (1998) String manipulation in Webcatalog (2001) Showif for mulitple variations (1997) Sample Tearoom Search Error (1997)