Re: Sizes/Colors Options

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 67121
interpreted = N
texte = Clint Davis wrote: > I've found a PHP store with this functionality, but it uses a PHP function > (explode) for which I can't find a WebDNA equivalent. Basically, they have a > separate table for product options. They delimit each option within a field > with "->" (tabs added for readability): > > optionidproductidskunameitems > 11123MW->123LW->123XLWSizes - ColorsM - White->L - > White->XL -White0.00->0.00->1.00 > > They use the explode function to create a pulldown menu like this: > > > Could a WebDNA function be written to split this single record into > individual items? If so, any pointers would be helpful as I've written a > function. If you are not doing anything client side.. why not just use searches? I have done some sites where you do a jump menu upon color selection.. which initiates a search for the sizes available in that product and color. ...Works just fine. My latest preferred solution to this issue is to pre-populate a JS array with the data I need (similar to what it looks like your PHP code is doing). This makes the color / size selections and image changes very quick (client side). Notice the SKU format in your code... I've found that a SKU format similar to what they have is essential to the store. If you are working on an existing store that is not set up with a SKU format that incorporates a common ID, Size, and color, you may have a hard time with the "find product SKU" philosophy. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Sizes/Colors Options ( John Peacock 2006)
  2. Re: Sizes/Colors Options ( Donovan Brooke 2006)
  3. Re: Sizes/Colors Options ( Clint Davis 2006)
  4. Re: Sizes/Colors Options ( Clint Davis 2006)
  5. Re: Sizes/Colors Options ( Donovan Brooke 2006)
  6. Sizes/Colors Options ( Clint Davis 2006)
Clint Davis wrote: > I've found a PHP store with this functionality, but it uses a PHP function > (explode) for which I can't find a WebDNA equivalent. Basically, they have a > separate table for product options. They delimit each option within a field > with "->" (tabs added for readability): > > optionidproductidskunameitems > 11123MW->123LW->123XLWSizes - ColorsM - White->L - > White->XL -White0.00->0.00->1.00 > > They use the explode function to create a pulldown menu like this: > > > Could a WebDNA function be written to split this single record into > individual items? If so, any pointers would be helpful as I've written a > function. If you are not doing anything client side.. why not just use searches? I have done some sites where you do a jump menu upon color selection.. which initiates a search for the sizes available in that product and color. ...Works just fine. My latest preferred solution to this issue is to pre-populate a JS array with the data I need (similar to what it looks like your PHP code is doing). This makes the color / size selections and image changes very quick (client side). Notice the SKU format in your code... I've found that a SKU format similar to what they have is essential to the store. If you are working on an existing store that is not set up with a SKU format that incorporates a common ID, Size, and color, you may have a hard time with the "find product SKU" philosophy. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan Brooke

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:

Append (1999) Configuration Q (1998) question: writing files textb in webmerch (1997) RE: Automatic Forwarding using WebCat (1997) [WebDNA] WebDNA frameworks and beginners (2012) Latin Characters (1998) I have troubles to send message out (1998) Editing Users.db (1997) Nested tags count question (1997) Trigger Problems (2000) WebCat b13 CGI -shownext- (1997) addlineitems within formvariable loop (1998) Laying an egg. (1998) [Reload mydata.db] (1998) 2nd WebCatalog2 Feature Request (1996) list items (1998) Secure Server (1999) [OT] help with a javascript alert (2003) WebCat2final1 crashes (1997) Is it possible to pause or wait a process (2000)