numero = 36473
interpreted = N
texte = Here is the code in the formulas db:Name Formulaprice [showif [sku]=1][math]-[subtotal]*.50[/math][/showif][showif[sku]=2][math]-[subtotal]*.55[/math][/showif][showif [sku]!1][showif[sku]!2][lookupdb=goodtimes/goodtimes.db&lookInField=sku&value=[sku]&returnField=price][/showif][/showif]taxrate [lookupdb=TaxRates.db&lookInField=State&value=Other&returnField=taxRate¬Found=5.00]shipCost [lookupdb=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipCost]unitShipCost [lookupdb=goodtimes/goodtimes.db&lookInField=sku&value=[sku]&returnField=unitShipCost]Here is the code in the invoice page that adds the lineitem for thediscount:[showif [subtotal]<299]No Discount has been offered[/showif] [showif[subtotal]>298][showif [subtotal]<500]50% OFF$[math]tempsubtotal=[subtotal]*.50[/math][AddLineItemcart=[cart]&sku=1&db=goodtimes/goodtimes.db][/AddLineItem][/showif][/showif][showif [subtotal]>499]55% OFF[math]tempsubtotal=[subtotal]*.55[/math][AddLineItemcart=[cart]&sku=2&price=[subtotal]&db=goodtimes/goodtimes.db][/AddLineItem][/showif]Here is the code in the thank you page: [math show=f]OK=1[/math] [showif [__name]=][mathshow=f]OK=0[/math][/showif] [showif [__address]=][math show=f]OK=0[/math][/showif] [showif[__city]=][math show=f]OK=0[/math][/showif] [showif [__state]=][mathshow=f]OK=0[/math][/showif] [showif [__zip]=][math show=f]OK=0[/math][/showif] [showif[__phone]=][math show=f]OK=0[/math][/showif] [showif [math]OK[/math]=0] Please goback and enter all the information requested. [/showif] [showif[math]OK[/math]=1] [/showif] [showif [math]OK[/math]=1] [orderfile cart=[cart]][SetHeader cart=[cart]]payMethod=[showif [useAC]=T]AC[/showif][hideif[useAC]=T]CC[/hideif]&[formvariables name=__&exact=F][getcharsstart=3][name][/getchars]=[url][value][/url]&[/formvariables][/SetHeader] [SetHeadercart=[cart]]shipVia=[url][__shipVia][/url]&ShipTostate=[url][__shipToState][/url]&CartIPAddress=[ipAddress][/SetHeader] [lineItems]
[lineindex]
[quantity]
[sku]
[textA]
$[price]
$[math][quantity]*[price][/math]
[/lineItems]
Subtotal
$[subTotal]
Tax Rate: [taxRate] % Tax
$[taxTotal]
Shipping & Handling
$[shipTotal]
Grand Total
$[grandTotal]
-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Here is the code in the formulas db:Name Formulaprice [showif [sku]=1][math]-[subtotal]*.50[/math][/showif][showif[sku]=2][math]-[subtotal]*.55[/math][/showif][showif [sku]!1][showif[sku]!2][lookupdb=goodtimes/goodtimes.db&lookInField=sku&value=[sku]&returnField=price][/showif][/showif]taxrate [lookupdb=TaxRates.db&lookInField=State&value=Other&returnField=taxRate¬Found=5.00]shipCost [lookupdb=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipCost]unitShipCost [lookupdb=goodtimes/goodtimes.db&lookInField=sku&value=[sku]&returnField=unitShipCost]Here is the code in the invoice page that adds the lineitem for thediscount:[showif [subtotal]<299]No Discount has been offered[/showif] [showif[subtotal]>298][showif [subtotal]<500]50% OFF$[math]tempsubtotal=[subtotal]*.50[/math][AddLineItemcart=[cart]&sku=1&db=goodtimes/goodtimes.db][/AddLineItem][/showif][/showif][showif [subtotal]>499]55% OFF[math]tempsubtotal=[subtotal]*.55[/math][AddLineItemcart=[cart]&sku=2&price=[subtotal]&db=goodtimes/goodtimes.db][/AddLineItem][/showif]Here is the code in the thank you page: [math show=f]OK=1[/math] [showif [__name]=][mathshow=f]OK=0[/math][/showif] [showif [__address]=][math show=f]OK=0[/math][/showif] [showif[__city]=][math show=f]OK=0[/math][/showif] [showif [__state]=][mathshow=f]OK=0[/math][/showif] [showif [__zip]=][math show=f]OK=0[/math][/showif] [showif[__phone]=][math show=f]OK=0[/math][/showif] [showif [math]OK[/math]=0] Please goback and enter all the information requested. [/showif] [showif[math]OK[/math]=1] [/showif] [showif [math]OK[/math]=1] [orderfile cart=[cart]][SetHeader cart=[cart]]payMethod=[showif [useAC]=T]AC[/showif][hideif[useAC]=T]CC[/hideif]&[formvariables name=__&exact=F][getcharsstart=3][name][/getchars]=[url][value][/url]&[/formvariables][/SetHeader] [SetHeadercart=[cart]]shipVia=[url][__shipVia][/url]&ShipTostate=[url][__shipToState][/url]&CartIPAddress=[ipaddress][/SetHeader] [lineitems]
-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Stephen Russo
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...