Post by robster » Sun Aug 03, 2014 8:43 am

Hi guys

I am looking into the idea of offering my website clients an alternative to paying for their site build, SEO, social networking, etc. with a commission payment based on their website sales.

So instead of charging the usual monthly fixed charges I am proposing charging them by volume of sales. Payment by results you could call it!

What I need is a simple system that allows me (as super admin on their sites?) to be able to set a commission level on all sales (based on subtotal) so that both them and I can see at a glance commission due and monthly report for same. This only needs to be order totals and not by customer or by product or anything like that.

Maybe a modification to the affiliate system but whereby each and every sales is assigned to my affiliate account?

Anybody do this?

The next stage after that would be a system that automatically pays me by paypal at the end of each month - how cool would that be? But that is maybe for another day.

PM me with details.

Cheers
robster

I know my place...!


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 8:08 pm
Location - North Yorkshire, UK

Post by ocmta » Sun Aug 03, 2014 3:36 pm

To make it pay commission on all sales to some affiliate account you need to edit main index.php, replace this:

Code: Select all

if (isset($request->get['tracking'])) {
	setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
}
with this:

Code: Select all

setcookie('tracking', 'your_tracking code', time() + 3600 * 24 * 1000, '/');
where 'your_tracking_code' is tracking code of that affiliate account.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by robster » Mon Aug 04, 2014 1:50 am

@ocmta

Thanks - that seems an interesting solution. May I ask a few questions:

1. Does this still use cookies? Is there any way to do this without using cookies like perhaps hard coding into database?
2. Also does this change in code mean that the affiliate system will no longer work should the client want to use the built in affiliate system?

Oterwise perfect - simple and just what I was trying to achieve - thanks friend.

Cheers
robster

I know my place...!


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 8:08 pm
Location - North Yorkshire, UK

Post by ocmta » Mon Aug 04, 2014 6:04 am

Yes, it still uses cookies. It's possible to store in the database, but it requires modifications that are too complicated for the forum.

Yes, this code will replace all incoming tracking codes, but that's very easy to change, just use this as a replacement:

Code: Select all

if (isset($request->get['tracking'])) {
	setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
} else if (!isset($request->cookie['tracking'])) {
    setcookie('tracking', 'your_tracking code', time() + 3600 * 24 * 1000, '/');
}

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by robster » Mon Aug 04, 2014 5:38 pm

@ocmta

Thanks once again for your reply. Sounds great.

I will PM you about he hard coding.

Cheers

Rob

I know my place...!


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 8:08 pm
Location - North Yorkshire, UK
Who is online

Users browsing this forum: No registered users and 8 guests