Re: forming a SKU

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23509
interpreted = N
texte = Dear both of you!I think Peters suggestion will be able to cause you some troubles, at least if you have more than 9 products, 9 colors and 9 sizesThe problem would occur when looking at the sku to determine what the user has ordered.sooo... two ways of making it workEither day that all products need an sku with the exact count of digits. exampleproducts0000001 0000002 0000003 0000004 0000005SIZES001 002 003 004 005COLORS001 002 003 004 005Then the result would be like 000001001001 and you could simply use a getchars context to find out which product the user has bought, and what color, and what sizeThe other way was to add a separator..[checkbox_1]/[checkbox_2]/[checkbox_3]So that you easily could split up the sku into the different parts.Just my humble opinion /martin>At 13:10 Uhr 09.02.1999, Jan Kinzler wrote: > >>For example, a product has a shape, color and size. A user picks round, >>blue, and large and I want that selection to form a sku of 111 > > >For example - put the value 1 into the appropriate checkboxes. >After the form is submitted simply chain the values of the boxes: >[checkbox_1][checkbox_2][checkbox_3] and that gives your sku. >Of course, in the real application you might need more code to check the >fields, set some variables and so on... > >Peter > >++++++++++++++++++++++++++++++++++++++++++++++++ >Peter Ostry - Vienna/Austria - www.ostry.com >Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21 >++++++++++++++++++++++++++++++++++++++++++++++++ Associated Messages, from the most recent to the oldest:

    
  1. Re: forming a SKU (Larry Hewitt 1999)
  2. Re: forming a SKU (Kenneth Grome 1999)
  3. Re: forming a SKU (Martin Bech 1999)
  4. Re: forming a SKU (Peter Ostry 1999)
  5. Re: forming a SKU (Joseph Pugh 1999)
  6. Re: forming a SKU (Martin Bech 1999)
  7. Re: forming a SKU (Kenneth Grome 1999)
  8. Re: forming a SKU (Kenneth Grome 1999)
  9. Re: forming a SKU (Jan Kinzler 1999)
  10. Re: forming a SKU (Joseph Pugh 1999)
  11. Re: forming a SKU (Martin Bech 1999)
  12. Re: forming a SKU (Joseph Pugh 1999)
  13. Re: forming a SKU (Peter Ostry 1999)
  14. Re: forming a SKU (Martin Bech 1999)
  15. Re: forming a SKU (Joseph Pugh 1999)
  16. Re: forming a SKU (Peter Ostry 1999)
  17. Re: forming a SKU (Joseph Pugh 1999)
  18. forming a SKU (Jan Kinzler 1999)
Dear both of you!I think Peters suggestion will be able to cause you some troubles, at least if you have more than 9 products, 9 colors and 9 sizesThe problem would occur when looking at the sku to determine what the user has ordered.sooo... two ways of making it workEither day that all products need an sku with the exact count of digits. exampleproducts0000001 0000002 0000003 0000004 0000005SIZES001 002 003 004 005COLORS001 002 003 004 005Then the result would be like 000001001001 and you could simply use a getchars context to find out which product the user has bought, and what color, and what sizeThe other way was to add a separator..[checkbox_1]/[checkbox_2]/[checkbox_3]So that you easily could split up the sku into the different parts.Just my humble opinion /martin>At 13:10 Uhr 09.02.1999, Jan Kinzler wrote: > >>For example, a product has a shape, color and size. A user picks round, >>blue, and large and I want that selection to form a sku of 111 > > >For example - put the value 1 into the appropriate checkboxes. >After the form is submitted simply chain the values of the boxes: >[checkbox_1][checkbox_2][checkbox_3] and that gives your sku. >Of course, in the real application you might need more code to check the >fields, set some variables and so on... > >Peter > >++++++++++++++++++++++++++++++++++++++++++++++++ >Peter Ostry - Vienna/Austria - www.ostry.com >Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21 >++++++++++++++++++++++++++++++++++++++++++++++++ Martin Bech

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:

Help needed! (SIMS recommendation) (1998) WebMerchant bomb (1998) searching illegal HTML (2002) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Search repost: (2000) hidden databases (2000) Frames and WebCat (1997) Help name our technology! (1997) Summing fields (1997) [WebDNA] WebDNA on HostGator? (2011) Question about [encrypt] (1998) [TaxableTotal] - not working with AOL and IE (1997) WebMerchant MacAuthorize Hub (1999) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= (2004) Selecting sort fields (2000) Spreadsheet App pref. [OT] (2001) WebCat b13 CGI -shownext- (1997) find with exceptions (1997) WC Database Format (1997)