Virtue Mart
 
Integration with Virtue Mart is made by placing sale tracking script into the confirmation page.
 
LEAD Code Integration 1 Edit template
Find and open file checkout.thankyou.php

It should be in administrator/components/com_virtuemart/html/
LEAD Code Integration 2 Integration
Replace last ?> with following code
This code will track subtotal of the price (without coupon discount). If you want to track something else, you can use one of this variables:
order_total, order_subtotal, order_tax, order_shipping, order_shipping_tax, coupon_discount, order_discount, order_status, customer_note

Use it in the way as it is showed in the code above in the third line.
LEAD Code Integration 4 Finished
It is now integrated. Every time customer enters the order confirmation page the tracking code is called and it will register a sale for referring affiliate.