[ic] Discounts - This works but is there a better way.

Gregg Fabbri gafabbri@yahoo.com
Thu, 16 Nov 2000 10:13:30 -0800 (PST)


I want to apply a discount to my entire site but also
want to display it on the checkout and cart pages. 
Here is what I did.  My question, is this OK to or am
I asking for trouble?  Is there a better way?

(I took out most of the html tags for easier reading)
First, I print the un-discounted subtotal.
  <tr>
     <td>Subtotal:</td>
     <td>[discount
code=ALL_ITEMS][/discount][subtotal]</td>
  </tr>

Second, I print the Discount (10%)
  <tr>
     <td>Discount:</td>
     <td>[discount code=ALL_ITEMS]$s *
.1[/discount][subtotal]</td>
  </tr>


Third, I print the discounted subtotal.

  <tr>
     <td>Discounted Subtotal:</td>
     <td>[discount code=ALL_ITEMS]$s *
.9[/discount][subtotal]</td>
  </tr>

=====
-----------------------------
Gregg A. Fabbri



__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/