Re: [shippingtotal] still...

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45765
interpreted = N
texte = John Peacock wrote:> Donovan wrote: > > > > I think you mean shippingTotal ;-) > > No, I mean shipCost. shippingTotal is the sum of the line items > > for each line item: (qty * unitShipCost) > plus the header field shipCost > > shippingTotal can be overridden at the point of [purchase], but otherwise it is > calculated from the above.ShippingTotal can be overridden anywhere but I may have mis-understood what you meant.> shipping = $6.50 or free if you buy 2 or more > > then it is much easier to just replace the shipCost with $6.50 when 1 item is > ordered and with 0 if there is more than one item. > > AFAIK, if you set the header field shippingTotal on any page then later > [purchase], the shippingTotal will again be calculated from the above rules > instead.Actually, This is incorrect. From the docs:WebMerchant displays this value if it is explicitly set, otherwise it computes it from the numbers provided in the order file.Also, I did verify this on my munge store by putting [setheader cart=[cart]&db=admin/products.db]shippingTotal=350.00[/setheader] at the top of the thankyou.tpl page (before the purchase command). I received an email with $350.00 for Shipping And Handling. -ouch! > I've never used shippingTotal, since it wasn't available in 1.x...I've used it because in the docs it doesn't show shipcost as being an optional header to overide (though one may very well be able to overide it)With much respect, Donovan>> > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > >-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [shippingtotal] still... (John Peacock 2002)
  2. Re: [shippingtotal] still... (Donovan 2002)
  3. Re: [shippingtotal] still... (John Peacock 2002)
  4. Re: [shippingtotal] still... (Donovan 2002)
  5. Re: [shippingtotal] still... (Donovan 2002)
  6. Re: [shippingtotal] still... (John Peacock 2002)
  7. [shippingtotal] still... (WJ Starck 2002)
John Peacock wrote:> Donovan wrote: > > > > I think you mean shippingTotal ;-) > > No, I mean shipCost. shippingTotal is the sum of the line items > > for each line item: (qty * unitShipCost) > plus the header field shipCost > > shippingTotal can be overridden at the point of [purchase], but otherwise it is > calculated from the above.ShippingTotal can be overridden anywhere but I may have mis-understood what you meant.> shipping = $6.50 or free if you buy 2 or more > > then it is much easier to just replace the shipCost with $6.50 when 1 item is > ordered and with 0 if there is more than one item. > > AFAIK, if you set the header field shippingTotal on any page then later > [purchase], the shippingTotal will again be calculated from the above rules > instead.Actually, This is incorrect. From the docs:WebMerchant displays this value if it is explicitly set, otherwise it computes it from the numbers provided in the order file.Also, I did verify this on my munge store by putting [setheader cart=[cart]&db=admin/products.db]shippingTotal=350.00[/setheader] at the top of the thankyou.tpl page (before the purchase command). I received an email with $350.00 for Shipping And Handling. -ouch! > I've never used shippingTotal, since it wasn't available in 1.x...I've used it because in the docs it doesn't show shipcost as being an optional header to overide (though one may very well be able to overide it)With much respect, Donovan>> > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > >-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Donovan

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 Report, maybe (1997) [WebDNA] passing a variable in an include - precedence (2017) [if] (2003) Extended [ConvertChars] (1997) no global [username] or [password] displayed ... (1997) All choices on IE different than Netscape (1997) Newbie - Search question (1998) [WebDNA] [OT] Free Windows FTP client recommendations (2009) Is this google friendly? (2003) SKU lookup (1997) Re2: Calculating multiple shipping... (1997) Further tests with the infamous shipCost (1997) Ampersand Character (&) (1997) WebCat/Typhoon Status under Windows (1998) [CART] (1997) WebCat B13 Mac CGI -- Frames question (1997) Cookies (1998) Virtual hosting and webcatNT (1997) Sharing DBs across domains (2001) How is it done? (1998)