Re: from product to cart to orders folder in one operation?
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 26384
interpreted = N
texte = >I'm trying to get an order from the product detail page, into the shopping>cart folder, then into the orders folder, all with one form operation.>>So far all I've been able to do is freeze W*.>>>When a customer selects a product it links to the following:>>[search db=customer.db&eqIDdata=[_ID]&max=1][founditems]>>[SetHeader cart=[cart]&db=product.db]fieldname=fieldvalue, etc. (sets all>the address and payment information by looking it up in a customer>database) [/SetHeader]>>[SetLineItem>cart=[cart]&index=1&db=product.db]quantity=1&textA=[url][lookup>db=product.db&lookinfield=sku&value=[sku]&returnfield=product][/url][/SetLineIte>m]>>[/founditems][/search]>>[purchase cart=[cart]]>>>Is there any other way to do this?Try this: First, if this page is not inside an implied orderfile context because of the command you used to get here, you need to put your setheader and setlineitems context inside an orderfile context. Next, replace your purchase tag with a redirect tag that redirect to a new purchase.tpl file -- and make sure you pass the cart value in the redirect. FInally, put your purchase tag in the new purchase.tpl file.================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.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
Associated Messages, from the most recent to the oldest:
>I'm trying to get an order from the product detail page, into the shopping>cart folder, then into the orders folder, all with one form operation.>>So far all I've been able to do is freeze W*.>>>When a customer selects a product it links to the following:>>[search db=customer.db&eqIDdata=[_ID]&max=1][founditems]>>[SetHeader cart=[cart]&db=product.db]fieldname=fieldvalue, etc. (sets all>the address and payment information by looking it up in a customer>database) [/SetHeader]>>[SetLineItem>cart=[cart]&index=1&db=product.db]quantity=1&textA=[url][lookup>db=product.db&lookinfield=sku&value=[sku]&returnfield=product][/url][/SetLineIte>m]>>[/founditems][/search]>>[purchase cart=[cart]]>>>Is there any other way to do this?Try this: First, if this page is not inside an implied orderfile context because of the command you used to get here, you need to put your setheader and setlineitems context inside an orderfile context. Next, replace your purchase tag with a redirect tag that redirect to a new purchase.tpl file -- and make sure you pass the cart value in the redirect. FInally, put your purchase tag in the new purchase.tpl file.================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Kenneth Grome
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:
Bug or syntax error on my part? (1997)
cookie length (1998)
[format 40s]text[/format] doesn't work (1997)
Search results templates (1996)
[delete] problem (1997)
[quantity] - spoke too soon (1997)
can WC render sites out? (1997)
Great product and great job ! (1997)
Listserver problem (1997)
service stop and restart (1997)
Multicolumn table layout (was Variable Math) (1998)
Re:Emailer and encryption (1997)
where to put code (1998)
New WebDNA Solutions ... (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Updating a database once per day - An example (1998)
Running _every_ page through WebCat ? (1997)
Need relative path explanation (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Major NT problem Interruption of service (1998)