Jump to content

affiliates script


ozema

Recommended Posts

Hello everyone,

I'm trying to integrate a script to my cubecart affiliated store. In the directions of integration and meeting the following steps:

=========================================================================================================

you need to add two codes:
- one for tracking visits
- one for tracking purchases

1.- For tracking - find a page or script in your CubeCart install, that is responsible for showing the footer of your site, you must include here this code:
<?php
require_once('easy_affiliate.class.php');
$easy_affiliate->startTracking();
?>

2.- For purchases: after this you need to find the script where the purchase is inserted into your database and add this code

require_once('easy_affiliate.class.php');
$easy_affiliate->markBuy($id_user, $id_order, $price, $is_paid);


3.- where these variables $id_user, $id_order, $price, $is_paid you need to replace with the respective ones from the cubecart code.

=====================================================================================================

I have installed the version 6.0.4 (installed using softaculous)

The skin I'm using is the default one, called FOUNDATION

Can someone help me locate the files where should I put the codes?

Can someone help me define what are the variables I should change?

Thanks for your time, I wait for your comments.

Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...