1) add a donation column to #_vm_orders table
2) during checkout we need to add we need to have a donation amount calculated based on the coupon code used.
Calculation should be
if coupon code is within range (100000 - 200000) then calculate 10% of order total pre shipping and pre tax
on successful payment store the calculated amount in the donation column in the #_vm_orders table
3) on the template we should have
if coupon code is with the range (100000 - 200000) then insert <div id="hoopdonate">You have donated $[calculated_amount] to XXXXXX</div>
this should also bee shown on the order confirmation, invoice and confirmation email.
4) We need a list of ALL files that has been changes
5) code should be commented in all files using the appropriate php or html commenting syntax e.g.
//* donation calculation begin *//
to
//* donation calculation end *//