Open Cart Affiliate Plugin

opencart-logo

Start your Open Cart affiliate
program today with affBerry and
our free Open Cart plugin.

This is integration method for open source shopping cart OpenCart. The integration is done by integrating files of thank you page. You can track per product orders.

1 Edit confirm action

Navigate to your cart directory catalog\controller\checkout\ and open confirm.php for editing. Find this line:

$data[‘totals’] = array();

Put this code below that line:

Save these files and continue with next step.

2 Edit success action

Open file catalog/controller/checkout/success.php and find this line (first occurrence):

if ($this->customer->isLogged()) {

Place the following code above that line:

Save these files and continue with next step.

3 One transaction per product – Edit success view

Open file catalog/view/theme/default/template/common/success.tpl

Add these lines before the last line which says “echo $footer;”

Save these files.This will register a commission per each ordered product.

Set your Affiliate Id and Track Campaign Id.It is in your affilaite panel.

Note:- Replace your site URL in Script source.