Re: Shoppingcart passing price

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30008
interpreted = N
texte = It is quite large This is the invoice.tpl

merchandise

Your Order Number is #[cart]
[lineItems] [/lineItems]
Item #QtyProduct #Product NameSizePriceExtension
[lineIndex][quantity][sku][Title] [TextA]$[Price]$[format .2f][math][quantity]*[Price][/math][/format]
Subtotal$[Subtotal]
[orderfile cart=[cart]] [SetHeader cart=[cart]&db=bananas.db]CartIPAddress=[ipAddress]&ShipCost=[ShipCost]&taxT otal=[taxTotal]&taxRate=[TaxRate][/SetHeader] [/orderfile]This for the Shopping Cart.tpl[OrderFile cart=[cart]][!]Put the items into the cart using the addlineitems context[/!] [!]Save the size information in the textA field[/!] [!]loop through all the item variables checked on the previous page[/!] [formvariables name=item&exact=f] [!]Get the index for item so we can get all the other parameter variables (size, quantity, etc.) when we do the addlineitem[/!] [math show=f]the_index=[getchars start=6][name][/getchars][/math] [AddLineItem db=bananas.db&cart=[cart]&sku=[url][value][/url]]quantity=[Interpret][qty_[m ath]the_index[/math]][/Interpret]&textA=[Interpret][size_[math]the_index[/ma th]][/Interpret][/AddLineItem] [/formvariables]

merchandise

You have just added an item to your shopping cart. From here, you may press your browser's Go Back button to see the page you just came from, or you can go to the Products page.

If you are done shopping, please fill in the quantity for each product you would like to buy, choose a shipping method and ship to destination, and then click Proceed to Final Checkout.

Your Shopping Cart Contains the Following Items

[lineItems] [/lineItems]
Line #Product #ProductQtyPriceOptionsPut It Back!
[lineIndex][SKU][Title] $[hideif [TextA]=][math][lookup db=bananas.db&lookinfield=size&value=[TextA]&Returnfield=Price&NotFound=[Pri ce]][/math][/hideif][hideif [TextB]=][math][lookup db=bananas.db&lookinfield=subcategory&value=[TextB]&Returnfield=Price&NotFou nd=[Price]][/math][/hideif][showif [TextA]=][showif [TextB]=][format 6.2f][Price][/format][/showif][/showif][TextA][TextB]Remove Item

Shipping Method:

Ship to: Other Wisconsin (Required for further processing)

[/orderfile] > From: John > Reply-To: (WebCatalog Talk) > Date: Tue, 04 Apr 2000 19:10:32 > To: (WebCatalog Talk) > Subject: Re: Shoppingcart passing price > > Lori, > > Can you post the code you are using. That would help us better determine what > the > problem is. > > Thanks! > John > > Lori wrote: > >> -- >> Lori Hafenbreadl >> Alpha Web Design, Inc >> 324 1/2 Washington Street, Suite 6 >> Wausau, WI 54401 >> >> 715-849-4041 >> >> http://www.alphawd.com >> >> I cannot seem to get the shoppingcart to pass the correct price to the >> invoice.tpl can any on suggest to me how to do this. >> >> ------------------------------------------------------------- >> 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 >> > > > ------------------------------------------------------------- > 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 > > ------------------------------------------------------------- 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:

    
  1. Re: Shoppingcart passing price (Glenn Busbin 2000)
  2. Re: Shoppingcart passing price (Lori 2000)
  3. Re: Shoppingcart passing price (John 2000)
  4. Shoppingcart passing price (Lori 2000)
It is quite large This is the invoice.tpl

merchandise

[cart]>[cart]>[cart]>[cart]>[cart]>[cart]>

[cart]> [math]ShippingTotal=3.95+ceil(([subTotal]-20)/20)[/math]> Your Order Number is #[cart]
[lineitems] [/lineItems]
Item #QtyProduct #Product NameSizePriceExtension
[lineIndex][quantity][sku][Title] [TextA]$[Price]$[format .2f][math][quantity]*[Price][/math][/format]
Subtotal$[Subtotal]
[orderfile cart=[cart]] [SetHeader cart=[cart]&db=bananas.db]CartIPAddress=[ipaddress]&ShipCost=[ShipCost]&taxT otal=[taxTotal]&taxRate=[TaxRate][/SetHeader] [/orderfile]This for the Shopping Cart.tpl[OrderFile cart=[cart]][!]Put the items into the cart using the addlineitems context[/!] [!]Save the size information in the textA field[/!] [!]loop through all the item variables checked on the previous page[/!] [formvariables name=item&exact=f] [!]Get the index for item so we can get all the other parameter variables (size, quantity, etc.) when we do the addlineitem[/!] [math show=f]the_index=[getchars start=6][name][/getchars][/math] [AddLineItem db=bananas.db&cart=[cart]&sku=[url][value][/url]]quantity=[interpret][qty_[m ath]the_index[/math]][/Interpret]&textA=[interpret][size_[math]the_index[/ma th]][/Interpret][/AddLineItem] [/formvariables]

merchandise

[cart]>[cart]>[cart]>[cart]>[cart]>[cart]>
You have just added an item to your shopping cart. From here, you may press your browser's Go Back button to see the page you just came from, or you can [cart]>go to the Products page.

If you are done shopping, please fill in the quantity for each product you would like to buy, choose a shipping method and ship to destination, and then click Proceed to Final Checkout.

Your Shopping Cart Contains the Following Items

[cart]> [lineitems] [/lineItems]
Line #Product #ProductQtyPriceOptionsPut It Back!
[lineIndex][SKU][Title] $[hideif [TextA]=][math][lookup db=bananas.db&lookinfield=size&value=[TextA]&Returnfield=Price&NotFound=[Pri ce]][/math][/hideif][hideif [TextB]=][math][lookup db=bananas.db&lookinfield=subcategory&value=[TextB]&Returnfield=Price&NotFou nd=[Price]][/math][/hideif][showif [TextA]=][showif [TextB]=][format 6.2f][Price][/format][/showif][/showif][TextA][TextB]Remove Item

Shipping Method:

Ship to: Other Wisconsin (Required for further processing)

[/orderfile] > From: John > Reply-To: (WebCatalog Talk) > Date: Tue, 04 Apr 2000 19:10:32 > To: (WebCatalog Talk) > Subject: Re: Shoppingcart passing price > > Lori, > > Can you post the code you are using. That would help us better determine what > the > problem is. > > Thanks! > John > > Lori wrote: > >> -- >> Lori Hafenbreadl >> Alpha Web Design, Inc >> 324 1/2 Washington Street, Suite 6 >> Wausau, WI 54401 >> >> 715-849-4041 >> >> http://www.alphawd.com >> >> I cannot seem to get the shoppingcart to pass the correct price to the >> invoice.tpl can any on suggest to me how to do this. >> >> ------------------------------------------------------------- >> 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 >> > > > ------------------------------------------------------------- > 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 > > ------------------------------------------------------------- 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 Lori

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:

2.01 upgrade problems (1997) Wrapping text (1998) More on the email templates (1997) Download Question (1997) EMailer - WebSTAR V - OSX - WebDNA (2003) Same DB Same Time (2004) [OT] (waaaay OT) (2004) Practice runs ? (1997) [QuantityPrice] Not working in WebCatNT 2.0.1??? (1997) filemaker - orderfile (1997) Nested tags count question (1997) 2.0 Beta (1997) [redirect] question (2005) Checking for blank form fields 2nd idea (1998) Last freebie (1998) WebCat for mass emailings (1997) Xserve Recommendations (2003) PCS Frames (1997) date display (1999) page redirect in webDNA (1997)