RE: combining strings
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13092
interpreted = N
texte = Michael ->I'm trying to work up a presentation for a potential client with a very>complicated catalog (and I'm new at all this, to boot!). I'm wondering if>it is possible in WebCatalog to combine snippets of SKUs to make a longer>SKU.Sure - rather than having your form action use an explicit $search command, think of your form page as a variable collector, and use embedded [search] (or [addlineitem], or whatever) contexts in the page your form points to, which will give you more freedom to manipulate the variables.>Here's an example:>The OS550 series has three basic styles (OS551, OS552, and OS553); each>is availble in three different configurations of output (A, B, C) and four>quality of focus (1, 2, 3, 4). This makes for 36 combinations. The client>expects the customer to order using concatenated numbers: OS552-C-3, for>instance; and all three parts of the SKU are required.>I have been able to set up a search that gives option lists for each field,>but I have not been able to pass the combination through to the shopping>cart as the actual SKU. Is there a way to do this by adding string values?Okay, in this example, let's say you have your form take three inputs: style, config, and focus. On the next page, you can build a SKU >from these inside a context, like so:[search db=yourstuff.db&eqSKUdata=[style]-[config]-[focus]]....[/search]You might need to wrap that resulting SKU in a [URL] context, and if there are going to be different/special cases you may have to do a little [showif] checking, but this approach should work for you.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
| |
- RE: combining strings (Marc Eagle 1997)
|
Michael ->I'm trying to work up a presentation for a potential client with a very>complicated catalog (and I'm new at all this, to boot!). I'm wondering if>it is possible in WebCatalog to combine snippets of SKUs to make a longer>SKU.Sure - rather than having your form action use an explicit $search command, think of your form page as a variable collector, and use embedded
[search] (or
[addlineitem], or whatever) contexts in the page your form points to, which will give you more freedom to manipulate the variables.>Here's an example:>The OS550 series has three basic styles (OS551, OS552, and OS553); each>is availble in three different configurations of output (A, B, C) and four>quality of focus (1, 2, 3, 4). This makes for 36 combinations. The client>expects the customer to order using concatenated numbers: OS552-C-3, for>instance; and all three parts of the SKU are required.>I have been able to set up a search that gives option lists for each field,>but I have not been able to pass the combination through to the shopping>cart as the actual SKU. Is there a way to do this by adding string values?Okay, in this example, let's say you have your form take three inputs: style, config, and focus. On the next page, you can build a SKU >from these inside a context, like so:[search db=yourstuff.db&eqSKUdata=[style]-[config]-[focus]]....[/search]You might need to wrap that resulting SKU in a
[url] context, and if there are going to be different/special cases you may have to do a little
[showif] checking, but this approach should work for you.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
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:
5.0 feature request: Sort for ListWords (2001)
[WebDNA] Talk archives (2010)
Help needed with WebCat on Solaris (2000)
Setting a range in a search (1998)
[WebDNA] Some JS help please (2010)
Missing Cart Information (2003)
webcat restarting script on Linux? (1999)
re: How can I record purchases to a database? (1998)
Linux vs Jaguar (OSX) (2002)
Opinion: [input] should be called [output] ... (1997)
Showing unopened cart (1997)
RE: speed of TCPConnect? (1998)
Why are some admin pages not encrypted? (2000)
A quickie question (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Just Testing (1997)
Emailer (1997)
Unexpected error (1997)
[shownext max=?] armed (1997)
WebDNA Developer Needed (2007)