Having affiliates is a great way to boost your sales, so this article will help you atract more affiliates to your website by displaying somewhere on the product page how much an affiliate wil make by making a sale of that viewed product.
For that you would have to modify 2 files catalog/controller/product/product.php and catalog/view/theme/yourtheme/template/product/product.tpl.
First on the product.php file find the line:
and above it add the following code:
$this->data['youearn'] = "By promoting this product you could earn on a sale " . $this->currency->format($earning);
And then in product.tpl wherever you want the text to appear add the code:
That is it and now your affiliates or potential affiliates will know how much they could make on selling that product.