[ic] Discounting Entire Order based On Quantity

Ed LaFrance interchange-users@interchange.redhat.com
Tue Jan 22 12:38:01 2002


At 09:12 AM 01/22/2002 -0700, you wrote:
>I am trying to discount an order based on if there are 20 or more items in
>the cart.
>
>Here is the code that I have placed on the checkout.html page located in
>$catalogroot/pages/ord/:
>
>1       [if type=explicit compare="[calc][item-quantity] > 19 [/calc]"]
>2                       [discount ENTIRE_ORDER]$s * .8 [/discount]
>3               [else]
>4                       [discount ENTIRE_ORDER][/discount]
>5               [/else]
>6       [/if]
>
>The discount is working fine. What is not working is the IF statement on
>line 1 that is supposed to make the adjustment only if there are more than
>19 items in the cart. I think this is because I am not using the right field
>for quantity.
>
>Any help is always appreciated.
>
>Best -
>--
>Fred Pope
>Satcom Resources
>970-748-3094
>fred@satcomresources.com
>http://www.satcomresources.com
>

Try this: [if type=explicit compare="[calc][nitems] > 19 [/calc]"]

- Ed L.



===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================