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:

Search crashing server (1998) Mondo amounts of Mail [long] (1999) Date or time comparisons have bugs ... (1998) any limitations on # of users.db entries (1999) [Announce] Newest Commerce Site based on WebCatalog (1997) emailer w/F2 (1997) Updating a database once per day - An example (1998) No Access warning when caching HTML files (1997) Country & Ship-to address & other fields ? (1997) Running 2 two WebCatalog.acgi's (1996) WebCat2b13MacPlugIn - More limits on [include] (1997) Multiple TCPConnects (2002) For those of you not on the WebCatalog Beta... (1997) 2nd WebCatalog2 Feature Request (1996) Most Efficiant Way to do restricted Areas (1997) Document Contains No Data! (1997) WebCatalog as another user on mac osx (2001) Can you do this??? and other stuff (1997) Pricing (1998) Why does 0 divided by 1=1? (2003)