Re: Shipping costs again

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18639
interpreted = N
texte = >Within US >Under $50: $5 Shipping >Orders $50-$100: $10 >Orders over $100: $15 > >Outside US >Under $50: $10 Shipping >Orders $50-$100: $20 >Orders over $100: $30For this particular case, you could make a formula for shipCost in your formulas.db like so:[ShowIf [ShipToCountry]=US]...math that looks at subtotal...[/ShowIf][ShowIf [ShipToCountry]=Other]...math that looks at subtotal...[/ShowIf]And the interior math part (for US) would look like:[math]5[ShowIf [SubTotal]>50]+5[/ShowIf][ShowIf [SubTotal]>100]+5[/ShowIf][/Math]For non-US, the math would be:[math]10[ShowIf [SubTotal]>50]+10[/ShowIf][ShowIf [SubTotal]>100]+10[/ShowIf][/Math]What these math pieces do is 5, 5+5, or 5+5+5, depending on the subtotal comparisons (or 10, 10+10, 10+10+10).Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Shipping costs again (PCS Technical Support 1998)
  2. Shipping costs again (greg 1998)
>Within US >Under $50: $5 Shipping >Orders $50-$100: $10 >Orders over $100: $15 > >Outside US >Under $50: $10 Shipping >Orders $50-$100: $20 >Orders over $100: $30For this particular case, you could make a formula for shipCost in your formulas.db like so:[ShowIf [ShipToCountry]=US]...math that looks at subtotal...[/ShowIf][ShowIf [ShipToCountry]=Other]...math that looks at subtotal...[/ShowIf]And the interior math part (for US) would look like:[math]5[ShowIf [SubTotal]>50]+5[/ShowIf][ShowIf [SubTotal]>100]+5[/ShowIf][/Math]For non-US, the math would be:[math]10[ShowIf [SubTotal]>50]+10[/ShowIf][ShowIf [SubTotal]>100]+10[/ShowIf][/Math]What these math pieces do is 5, 5+5, or 5+5+5, depending on the subtotal comparisons (or 10, 10+10, 10+10+10).Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

listfiles shows invisible files ... (1999) Fwd: more ! testing (1997) problems with 2 tags (1997) [setcookie] & [redirect] (1998) Problems getting parameters passed into email. (1997) [WebDNA] Cookie Enabled/Disabled (2013) IRC Channel (2003) Re:quit command on NT (1997) math with multiple [founditems] (1999) [shipCost] math formula? (1997) Linebreak as a delimiter in listwords? (2003) PSC recommends what date format yr 2000??? (1997) Re:Searching for ALL / empty form field (1997) Next X hits (1996) WebCatalog Hosting (1996) Can I do these? (1997) Cobalt RaQ2 and WebCatalog: who uses it? (2000) [WebDNA] .debug file (2009) Shopping cart problem (2003) expired beta (1997)