Re: .. more on sliding discounts...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12459
interpreted = N
texte = >an extra line containing a discount >(calculated using the total number of products ordered) can be added to >the end of an order file so that it is included in the subtotal (and >therefore has the correct tax applied to it)! Can subTotal or Grand Total >have formulas 'assigned' to them? Is there a way of charging tax on the >shipCost as well as the subTotal ( we have to charge tax on shipping >charges in the UK!)?There is an [AddLineItem] context that lets you put more items in the cart at will. Use this, combined with a little [lineitems] loop that uses [math] to add up the number of items in the cart.If you want to add tax to shipping, I suppose you could modify the [unitshipcost] formula to add the tax at the moment the product is added to the cart. But that means if the visitor ever changes the taxRate (by changing the destination, or something else that affects the taxRate), the unitShopCosts already in the cart would be wrong.Another way would be to add another lineitem to the bottom of the cart that represents the tax on shipping. You'll probably have to fake up a SKU called shiptax or something like that.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: .. more on sliding discounts... (Jeremy Pocock 1997)
  2. Re: .. more on sliding discounts... (Grant Hulbert 1997)
  3. .. more on sliding discounts... (Jeremy Pocock 1997)
>an extra line containing a discount >(calculated using the total number of products ordered) can be added to >the end of an order file so that it is included in the subtotal (and >therefore has the correct tax applied to it)! Can subTotal or Grand Total >have formulas 'assigned' to them? Is there a way of charging tax on the >shipCost as well as the subTotal ( we have to charge tax on shipping >charges in the UK!)?There is an [addlineitem] context that lets you put more items in the cart at will. Use this, combined with a little [lineitems] loop that uses [math] to add up the number of items in the cart.If you want to add tax to shipping, I suppose you could modify the [unitshipcost] formula to add the tax at the moment the product is added to the cart. But that means if the visitor ever changes the taxRate (by changing the destination, or something else that affects the taxRate), the unitShopCosts already in the cart would be wrong.Another way would be to add another lineitem to the bottom of the cart that represents the tax on shipping. You'll probably have to fake up a SKU called shiptax or something like that.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

restarting webcatalog (2002) Where's Cart Created ? (1997) WebCatalog Technical Reference (1997) Shipping Calculation Problem (1997) Now you see it now you donīt (1997) .html files and Apache AuthUserFile setting (2003) group searching problem (2002) Version 4? (2000) Large sites (2003) redirect within a showif (1998) OT: WebCat Programmer (2000) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Next X hits (1996) webcat- multiple selection in input field (1997) [WebDNA] 64-bit CentOS 6.3 (2013) RE:It just Does't add up!!! (1997) [OT] DNS Problems (2004) There's a bug in the math context ... (1997) Web Catalog Book? (1998) [append] (1997)