I need a shopping cart, perhaps digi store or some similar open source code to be integrated with affiliate software. The affiliate system is quite unique as it needs to run from either a standard affiliate link or a 'promo' code unique to each affiliate. The referring affiliate needs to be logged against the customer account so that they recieve commisions for the life of that customer. Also affiliate commisions need to be unique for each product.
Other features that would be useful is order tracking, gift vouchers, discount codes, mailing options to either affiliates or registered cutomers, digital and physical product options (with time and number of download restrictions on digital products).
I need a script that i can insert my template shop front, upload products and is user friendly for [url removed, login to view] merchant account will be an eGate account (ANZ bank in New Zealand) as well as options for internet transfer/cheque/phone details.
I am happy for as much open source code to be used as possible to keep costs down, or buy other open code software that can be modified.