Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

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



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/

_______________________________________________
Interchange-users mailing list
Interchange-users@www.minivend.com
http://www.minivend.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: