Re: shipcost

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15041
interpreted = N
texte = I just realized I should have included some code. Here are the invoice.tmpl, formulas.db & shoppingcart.tmplAnd again, the URL is http://38.231.165.5/Osmosis/Search.tmplInvoice.tmpl Invoice [include file=osmosisheader.txt]Your cart number is [cart].

Final Invoice

[ Change Quantities | Shop Some More ]

Your Final Invoice Contains the Following Items

[lineItems] [/lineItems]
TitleQtyPriceQty*Price
[title][quantity]$[price]$[format .2f][math][quantity]*[price][/math][/format]
Subtotal$[subtotal]
[header1] Tax Rate:[taxRate]%Tax$[taxTotal]
Shipping & Handling$[shipcost]
Grand Total$[grandTotal]

Please enter the following information so that we may process your order.
[include InvoiceForm.txt]

[include osmosisfooter.txt]Formulas.db Name Formula taxRate [lookup db=TaxRates.db&lookInField=State&value=[header1]&returnField=taxRate¬Fou nd=0.00] shipCost [showif [subtotal]<20.00]1[/showif][showif [subtotal]>19.99][showif [subtotal]<40.00]3[/showif][/showif][showif [subtotal]>39.99][showif [subtotal]<60.00]5[/showif][/showif][showif [subtotal]>59.99][showif [subtotal]<100.00]7[/showif][/showif][showif [subtotal]>99.99][showif [subtotal]<10000.00]10[/showif][/showif] unitShipCost 0.00ShoppingCart.tmpl Osmosis Shopping Cart [include file=osmosisheader.txt]

You have just added an item to your Osmosis Shopping Cart. From here, you may return to the search page to continue shopping or, if you are finished shopping, please fill in the quantity for each item you are purchasing, choose a ship to destination, and then click Proceed to Final Checkout.

Your Shopping Cart Contains the Following Items

[subtotal] [lineItems] [/lineItems]
Line #Product #Item TitleQtyPricePut It Back!
[lineIndex][SKU][Title][price] Remove Item


Ship to: California Other


[include file=osmosisfooter.txt] > >So, Here is where we are with the shipping issue. I think we have found >a bug? Grant thought that maybe the problem is that the shipping formula >was using the subtotal before the new subtotal was calculated. But that >is not the problem because I now have the ShoppingCart.tmpl calculating a >subtotal and the shipping is still incorrect. > >We have figured out that the shipping will calcute correctly if we reload >the invoice page. For example, if I purchase ten $20 robes, the shipping >returns the cost of one robe, but then if I go back to the ShoppingCart >page, don't change anything, and then go to Invoice.tmpl again the >shipping is correct for the ten $20 robes. > >Any ideas on how fix this problem? And for a temp. fix in time for >holiday shopping: Is there a way to make the page automatically load >twice or anything? > >Thank you very much, >Janna > > Associated Messages, from the most recent to the oldest:

    
  1. Re: Updating shipcost ( Mark Derrick 2005)
  2. Updating shipcost ( Mark Derrick 2005)
  3. Re: Shipcost formula ( WJC Limited 2004)
  4. Re: Shipcost formula ( WJC Limited 2004)
  5. Re: Shipcost formula ( Gary Krockover 2004)
  6. Re: Shipcost formula ( Gary Krockover 2004)
  7. Re: Shipcost formula ( WJC Limited 2004)
  8. Re: Shipcost formula ( Gary Krockover 2004)
  9. Re: Shipcost formula ( WJC Limited 2004)
  10. Re: Shipcost formula ( Gary Krockover 2004)
  11. Re: Shipcost formula ( WJC Limited 2004)
  12. Re: Shipcost formula ( Gary Krockover 2004)
  13. Shipcost formula ( WJC Limited 2004)
  14. Re: Shipcost formula ( WJC Limited 2004)
  15. Re: Shipcost formula ( Gary Krockover 2004)
  16. Shipcost formula ( WJC Limited 2004)
  17. Re: the dreaded unitShipCost ( Stuart Tremain 2003)
  18. Re: the dreaded unitShipCost ( Donovan Brooke 2003)
  19. Re: the dreaded unitShipCost ( Stuart Tremain 2003)
  20. Re: the dreaded unitShipCost ( Donovan Brooke 2003)
  21. Re: the dreaded unitShipCost ( Stuart Tremain 2003)
  22. Re: the dreaded unitShipCost ( Donovan Brooke 2003)
  23. Re: the dreaded unitShipCost ( Stuart Tremain 2003)
  24. Re: the dreaded unitShipCost ( John Peacock 2003)
  25. Re: the dreaded unitShipCost ( Donovan Brooke 2003)
  26. Re: the dreaded unitShipCost ( Alain Russell 2003)
  27. Re: the dreaded unitShipCost ( Alain Russell 2003)
  28. Re: the dreaded unitShipCost ( Donovan Brooke 2003)
  29. Re: the dreaded unitShipCost ( John Peacock 2003)
  30. Re: the dreaded unitShipCost ( "Andrew Simpson" 2003)
  31. Re: the dreaded unitShipCost ( Donovan Brooke 2003)
  32. Re: the dreaded unitShipCost ( "Andrew Simpson" 2003)
  33. Re: the dreaded unitShipCost ( Donovan Brooke 2003)
  34. Re: the dreaded unitShipCost ( "Andrew Simpson" 2003)
  35. Re: the dreaded unitShipCost ( "Andrew Simpson" 2003)
  36. Re: the dreaded unitShipCost ( Tim Robinson 2003)
  37. Re: the dreaded unitShipCost ( "Andrew Simpson" 2003)
  38. Re: the dreaded unitShipCost ( Stuart Tremain 2003)
  39. the dreaded unitShipCost ( "Andrew Simpson" 2003)
  40. Re: Taxes shipcost ( "Helpdesk - Jambolaya" 2003)
  41. Taxes shipcost ( "Helpdesk - Jambolaya" 2003)
  42. Re: UnitShipCost Slight Return (Donovan 2003)
  43. UnitShipCost Slight Return (Alphonse MacDonald 2003)
  44. Re: UnitShipCost, Formulas.db and passwords (John Peacock 2003)
  45. Re: UnitShipCost, Formulas.db and passwords (Alphonse MacDonald 2003)
  46. Re: UnitShipCost, Formulas.db and passwords (Donovan 2003)
  47. Re: UnitShipCost, Formulas.db and passwords (Donovan 2003)
  48. Re: UnitShipCost, Formulas.db and passwords (Donovan 2003)
  49. UnitShipCost, Formulas.db and passwords (Alphonse MacDonald 2003)
  50. Re: shopcost, unitshipcost (Andrew Simpson 2002)
  51. Re: shopcost, unitshipcost (Donovan Brooke 2002)
  52. Re: shopcost, unitshipcost (Arturo Vargas 2002)
  53. Re: shopcost, unitshipcost (Andrew Simpson 2002)
  54. shopcost, unitshipcost (Arturo Vargas 2002)
  55. Re: unitShipCost - setlineitem nevermind (Donovan 2002)
  56. unitShipCost - setlineitem (Donovan 2002)
  57. Re: and more [shipcost].... (Arturo Vargas 2001)
  58. Re: and more [shipcost].... (Glenn Busbin 2001)
  59. Re: and more [shipcost].... (Arturo Vargas 2001)
  60. Re: and more [shipcost].... (Anup Setty 2001)
  61. Re: and more [shipcost].... (Arturo Vargas 2001)
  62. Re: and more [shipcost].... (Anup Setty 2001)
  63. and more [shipcost].... (Arturo Vargas 2001)
  64. shipCost problems (Nitai @ Eyework 2000)
  65. Re: Stumped on ShipCosts.db Problem (Bob McPeak 2000)
  66. Re: Stumped on ShipCosts.db Problem (John Butler 2000)
  67. Re[2]: shipCost -vs- shippingtotal ? (jpeacock@univpress.com 2000)
  68. Re: shipCost -vs- shippingtotal ? (John Butler 2000)
  69. Re[2]: shipCost -vs- shippingtotal ? (jpeacock@univpress.com 2000)
  70. Re[2]: shipCost -vs- shippingtotal ? (jpeacock@univpress.com 2000)
  71. Re: shipCost -vs- shippingtotal ? (John Butler 2000)
  72. Re: shipCost -vs- shippingtotal ? (John Butler 2000)
  73. Re: shipCost -vs- shippingtotal ? (John Butler 2000)
  74. Re: shipCost -vs- shippingtotal ? (jpeacock@univpress.com 2000)
  75. shipCost -vs- shippingtotal ? (John Butler 2000)
  76. Correction: shipCost (Robert Wade 2000)
  77. shipCost (Robert Wade 2000)
  78. Re: shipcost and Formulas.db (John Butler 2000)
  79. Re: shipcost and Formulas.db (Chris Vargas 2000)
  80. Re: shipcost and Formulas.db (Chris Vargas 2000)
  81. Re: shipcost and Formulas.db (John Butler 2000)
  82. shipcost and Formulas.db (Chris Vargas 2000)
  83. Re: Calculate UnitShipCost in Formulas.db (Smith Micro Support 1999)
  84. Re: Calculate UnitShipCost in Formulas.db (Rodolfo de la Garza 1999)
  85. Re: Calculate UnitShipCost in Formulas.db (Chris Vargas 1999)
  86. Calculate UnitShipCost in Formulas.db (Rodolfo de la Garza 1999)
  87. Setting shipCost -- thanks! (Chris Vargas 1999)
  88. Re: ShipCost formula (for weight *and* quantities)? (PCS Technical Support 1998)
  89. ShipCost formula (for weight *and* quantities)? (Dale Stokdyk 1998)
  90. Re: TaxRate and ShipCost Problem (PCS Technical Support 1998)
  91. TaxRate and ShipCost Problem (Karl Isselhardt 1998)
  92. Re: ShipCost and TaxRate problems (PCS Technical Support 1998)
  93. Re: shipCost (PCS Technical Support 1998)
  94. Re: shipCost (Brian B. Burton 1998)
  95. ShipCost and TaxRate problems (Karl Isselhardt 1998)
  96. Re: shipCost (PCS Technical Support 1998)
  97. shipCost (Brian B. Burton 1998)
  98. Re: When is unitShipCost calculated? (Luke Melia 1998)
  99. Re: When is unitShipCost calculated? (Brian Drum 1998)
  100. Re: When is unitShipCost calculated? (Brian Drum 1998)
  101. Re: When is unitShipCost calculated? (PCS Technical Support 1998)
  102. When is unitShipCost calculated? (Brian Drum 1998)
  103. Shipcost Based on SubTotal (Michael Fichtenmayer 1998)
  104. [unitshipcost] values do NOT write to orderfile (Kenneth Grome 1998)
  105. Re: ShipCost Problems (PCS Technical Support 1998)
  106. ShipCost Problems (Richard Kirsner 1998)
  107. Re: ShipCost Data Base (Kenneth Grome 1998)
  108. Re: ShipCost Data Base (Richard Kirsner 1998)
  109. Re: ShipCost Data Base (Kenneth Grome 1998)
  110. Re: ShipCost Data Base (bob 1998)
  111. ShipCost Data Base (Richard Kirsner 1998)
  112. Re: shipCost (PCS Technical Support 1998)
  113. shipCost (Raymond Hatch (by way of Jay Van Vark) 1998)
  114. Re: shipCost (Raymond Hatch 1998)
  115. Re: shipcost - cleaner with a table (Brian B. Burton 1998)
  116. shipcost - cleaner with a table (PCS Technical Support 1998)
  117. Shipcost Prob solved, new one arises (Kevin Furuta 1998)
  118. shipcost - fed up with the old way (Kevin Furuta 1998)
  119. Re: shipcost vs shiptotal (PCS Technical Support 1998)
  120. shipcost vs shiptotal (Kevin Furuta 1998)
  121. Re: shipCost not working v2.1b4 (Grant Hulbert 1997)
  122. Re: shipCost not working v2.1b4 (Pat McCormick 1997)
  123. Re: shipCost not working v2.1b4 (Pat McCormick 1997)
  124. shipCost not working v2.1b4 (Pat McCormick 1997)
  125. more on the Shipcost update problem (Jim Lanford 1997)
  126. Shipcost update problem (Jim Lanford 1997)
  127. Re: shipcost (Raymond Hatch 1997)
  128. Re: shipcost (Raymond Hatch 1997)
  129. Re: shipcost (Grant Hulbert 1997)
  130. Re: shipcost (Raymond Hatch 1997)
  131. Re: shipcost (Raymond Hatch 1997)
  132. Re: shipcost (Janna S. Kohen 1997)
  133. Re: shipcost (Janna S. Kohen 1997)
  134. Re: shipcost (Janna S. Kohen 1997)
  135. Re: shipcost (Janna S. Kohen 1997)
  136. Re: shipcost (Janna S. Kohen 1997)
  137. Re: shipcost (Janna S. Kohen 1997)
  138. Re: shipcost (Grant Hulbert 1997)
  139. Re: shipcost (Raymond Hatch 1997)
  140. Re: shipcost (Grant Hulbert 1997)
  141. Re: shipcost (Grant Hulbert 1997)
  142. Re: shipcost (Raymond Hatch 1997)
  143. Re: shipcost (Janna S. Kohen 1997)
  144. Re: shipcost (Janna S. Kohen 1997)
  145. Re: shipcost (Janna S. Kohen 1997)
  146. Re: shipcost (Janna S. Kohen 1997)
  147. Re: shipcost (Janna S. Kohen 1997)
  148. Re: shipcost (Janna S. Kohen 1997)
  149. Re: shipcost (grichter@panavise.com (Gary Richter) 1997)
  150. Re: shipcost (Kenneth Grome 1997)
  151. Re: shipcost (Kenneth Grome 1997)
  152. Re: shipcost (Kenneth Grome 1997)
  153. Re: shipcost (Raymond Hatch 1997)
  154. Re: shipcost (Raymond Hatch 1997)
  155. Re: shipcost (Raymond Hatch 1997)
  156. Re: shipcost (Janna S. Kohen 1997)
  157. Re: shipcost (Janna S. Kohen 1997)
  158. Re: shipcost (Janna S. Kohen 1997)
  159. Re: shipcost (Janna S. Kohen 1997)
  160. shipcost (Janna S. Kohen 1997)
  161. Re: [shipCost] math formula? (Grant Hulbert 1997)
  162. [shipCost] math formula? (dwilfong@world-wide-art.com (David Wilfong) 1997)
  163. shipCost formula (Janna S. Kohen 1997)
  164. calculating ShipCost depending on weight (Mike Heininger 1997)
  165. RE: Tax and ShipCost Problem (Marc Eagle 1997)
  166. Tax and ShipCost Problem (Mike Heininger 1997)
  167. THANKS!!! Re: ShipCosts.db and debugging (Dale Stokdyk 1997)
  168. Re: ShipCosts database (Grant Hulbert 1997)
  169. Re: ShipCosts database (Dale Stokdyk 1997)
  170. Re: creating a ShipCosts database (grichter@panavise.com (Gary Richter) 1997)
  171. Re: creating a ShipCosts database (Grant Hulbert 1997)
  172. Re: creating a ShipCosts database (Dale Stokdyk 1997)
  173. Re: creating a ShipCosts database (Grant Hulbert 1997)
  174. creating a ShipCosts database (Dale Stokdyk 1997)
  175. Re: unitshipcost vs shipcosts (Grant Hulbert 1997)
  176. unitshipcost vs shipcosts (Kevin Furuta 1997)
  177. Re: still having shipCost.db Problem (Richard Wylie 1997)
  178. Re: still having shipCost.db Problem (Grant Hulbert 1997)
  179. still having shipCost.db Problem (Richard Wylie 1997)
  180. Re: Shipcost lookup? (Kenneth Grome 1997)
  181. Shipcost lookup? (Richard Wylie 1997)
  182. Re: Further tests with the infamous shipCost (Sven U. Grenander 1997)
  183. Further tests with the infamous shipCost (w curt eggemeyer 1997)
  184. Further on formula.db failure to calculate shipCost (w curt eggemeyer 1997)
I just realized I should have included some code. Here are the invoice.tmpl, formulas.db & shoppingcart.tmplAnd again, the URL is http://38.231.165.5/Osmosis/Search.tmplInvoice.tmpl Invoice [include file=osmosisheader.txt]Your cart number is [cart].

Final Invoice

[ [cart]>Change Quantities | [cart]>Shop Some More ]

Your Final Invoice Contains the Following Items

[cart]> [lineitems] [/lineItems]
TitleQtyPriceQty*Price
[title][quantity]$[price]$[format .2f][math][quantity]*[price][/math][/format]
Subtotal$[subtotal]
[header1] Tax Rate:[taxRate]%Tax$[taxTotal]
Shipping & Handling$[shipcost]
Grand Total$[grandTotal]

Please enter the following information so that we may process your order.
[include InvoiceForm.txt]

[include osmosisfooter.txt]formulas.db Name Formula taxRate [lookup db=TaxRates.db&lookInField=State&value=[header1]&returnField=taxRate¬Fou nd=0.00] shipCost [showif [subtotal]<20.00]1[/showif][showif [subtotal]>19.99][showif [subtotal]<40.00]3[/showif][/showif][showif [subtotal]>39.99][showif [subtotal]<60.00]5[/showif][/showif][showif [subtotal]>59.99][showif [subtotal]<100.00]7[/showif][/showif][showif [subtotal]>99.99][showif [subtotal]<10000.00]10[/showif][/showif] unitShipCost 0.00ShoppingCart.tmpl Osmosis Shopping Cart [include file=osmosisheader.txt]

You have just added an item to your Osmosis Shopping Cart. From here, you may return to the search page to continue shopping or, if you are finished shopping, please fill in the quantity for each item you are purchasing, choose a ship to destination, and then click Proceed to Final Checkout.

Your Shopping Cart Contains the Following Items

[cart]> [subtotal] [lineitems] [/lineItems]
Line #Product #Item TitleQtyPricePut It Back!
[lineIndex][SKU][Title][price] [cart] >Remove Item


Ship to: California Other


[include file=osmosisfooter.txt] > >So, Here is where we are with the shipping issue. I think we have found >a bug? Grant thought that maybe the problem is that the shipping formula >was using the subtotal before the new subtotal was calculated. But that >is not the problem because I now have the ShoppingCart.tmpl calculating a >subtotal and the shipping is still incorrect. > >We have figured out that the shipping will calcute correctly if we reload >the invoice page. For example, if I purchase ten $20 robes, the shipping >returns the cost of one robe, but then if I go back to the ShoppingCart >page, don't change anything, and then go to Invoice.tmpl again the >shipping is correct for the ten $20 robes. > >Any ideas on how fix this problem? And for a temp. fix in time for >holiday shopping: Is there a way to make the page automatically load >twice or anything? > >Thank you very much, >Janna > > Janna S. Kohen

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:

WebCommerce: Folder organization ? (1997) [platform] tag? (1998) What am I missing (1997) [WebDNA] [OT] Updated (unofficial) WPT 2.0 (2014) slightly OT: advertising schemes (2004) [OT] MS Security Flaw (2000) Waitfor file (2000) IE problems persist (2004) Re1000001: Setting up shop (1997) Payment Processors (2005) [WebDNA] [raw] tag with [interpret] question (2010) [WebDNA] Super-cheap G.Skill RAM 8GB $25 today only (2011) Re:Running 2 two WebCatalog.acgi's (1996) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) [WebDNA] Re-sending emails (2017) Thanks Grant (1997) WebCatalog.acgi quitting with error Type 2 (1998) Math Problem - Format? (1997) Expiration of Carts (1997) Search Debugging (2004)