I am using the ecwid shopping cart and need to implement affiliate code tracking for it.
When an affiliate links to my website with a url such as [url removed, login to view]
A cookie needs to be created with the affiliate ID number and stored in the user's browser.
When the user reaches the page with the shopping cart, the affiliate id needs to be passed to the shopping cart by inserting the ID into this little bit of code here.
<script> xAffiliate("affiliate_id"); </script>
You can learn more about ecwid and the affiliate features here. [url removed, login to view]