Jump to content

Clix Galore


Guest Sharpshot

Recommended Posts

Guest Sharpshot

I'm using cubecart 3, It was supposedly simple to set up, basically you just type you 4 digit account number into the affiliates section on the admin of cubecart and enable it.

BUT..... when making orders it always comes up with 0.00 for the order amount on the clix galore admin area.

That's for orders using paypal OR print order form.

Now anyway, after the usless staff sending auto emails from clix galore, saying you must make an order over the value of £0.00 (that goes without saying) anyway, they send an apoligy email saying that its not so easy to use as originally said, so they sent me some new instructions, although these only apply to paypal paying customers. not print order form, anyway i tried these, and it still doesnt work.

???????

Link to comment
Share on other sites

This is the same case as iDevAffiliate.

Generally

1) AFFILIATE MODULES DOESNT WORKS IF GATEWAY RESULT CODE = FALSE (not equal SUCCESS)

- payment is false

2) AFFILIATE MODULES DOESNT WORKS PROPERLY IF GATEWAY $stateUpdate = FALSE.

Print Form $stateUpdate = FALSE (Since 3.0.8 Affiliate code was added to Print Form code but doesnt work properly - Fix is below..)

Pay Pal IPN $stateUpdate = FALSE (PayPal Standard works because $stateUpdate = TRUE)

This is not so simple situation. Affiliate tracking must be shown in customer browser page (reliable Affiliate co. does this so only).

By PayPal IPN order status is changed regardless customer does return to your store but Affiliate module doesnt works properly (some neccessary variables are NOT defined because its defined/erased (order Id and entire basket content) in routine for order status changing and confirmation email generation. This routine is called in call back url for PayPal - IPN and this is quite another process as customer has).

Wit PayPal IPN the affiliate routine never run with proper variables (variables like order id and amount are empty)

By PayPal Standard customer MUST return to your store - order status depends to page parameters going with return parameters and Affiliate Modules work properly if order payment is success. IF customer does not return to your store PayPal payment process is done - no order status change, no affiliate routine is running.

ADDED LATER

I have noticed that Affiliate code was added to Print Order Gateway in CC3.0.8 :huh: however doesnt work properly.

1) Basket session data are cleared just before Affiliate code => Order Id is empty

2) For some reason $order[0]['prod_total'] = $result[0]['prod_total']; doesnt work in first cycle ($i=0)

Use this code:

$print_order_form->parse("order_form");

	

$print_order_form->out("order_form");





	// add affilate tracking code/module

	$affiliateModule = $db->select("SELECT folder, `default` FROM ".$glob['dbprefix']."CubeCart_Modules WHERE module='affiliate' AND status = 1");



	if($affiliateModule == TRUE) {



		$order[0]['prod_total'] = $result[0]['prod_total'];	

		for($i=0; $i<count($affiliateModule); $i++){

			

			include("../../../modules/affiliate/".$affiliateModule[$i]['folder']."/tracker.inc.php");

			echo $affCode;

		

		}

	

	}



	// empty basket

	$basket = $cart->emptyCart();


instead of this 
	// empty basket

	$basket = $cart->emptyCart();

	

$print_order_form->parse("order_form");

	

$print_order_form->out("order_form");





// add affilate tracking code/module

	$affiliateModule = $db->select("SELECT folder, `default` FROM ".$glob['dbprefix']."CubeCart_Modules WHERE module='affiliate' AND status = 1");



	if($affiliateModule == TRUE) {

	

		for($i=0; $i<count($affiliateModule); $i++){

			

			include("../../../modules/affiliate/".$affiliateModule[$i]['folder']."/tracker.inc.php");

			// VARS AVAILABLE

			// Order Id Number $basket['cart_order_id']

			// Order Total $order[0]['prod_total']

			//$basket['cart_order_id'] = $_POST['x_invoice_num'];

			$order[0]['prod_total'] = $result[0]['prod_total'];

			echo $affCode;

		

		}

	

	}

Link to comment
Share on other sites

Guest Mysiteonline

Did you get this sorted in the end?

I'm thinking of using clixgalore to run an affiliate scheme for one of my sites.

Do you have any tips on setting it all up?

Link to comment
Share on other sites

  • 1 month later...
Guest mattng

This is the same case as iDevAffiliate.

Generally

1) AFFILIATE MODULES DOESNT WORKS IF GATEWAY RESULT CODE = FALSE (not equal SUCCESS)

- payment is false

2) AFFILIATE MODULES DOESNT WORKS PROPERLY IF GATEWAY $stateUpdate = FALSE.

Print Form $stateUpdate = FALSE (Since 3.0.8 Affiliate code was added to Print Form code but doesnt work properly - Fix is below..)

Pay Pal IPN $stateUpdate = FALSE (PayPal Standard works because $stateUpdate = TRUE)

This is not so simple situation. Affiliate tracking must be shown in customer browser page (reliable Affiliate co. does this so only).

By PayPal IPN order status is changed regardless customer does return to your store but Affiliate module doesnt works properly (some neccessary variables are NOT defined because its defined/erased (order Id and entire basket content) in routine for order status changing and confirmation email generation. This routine is called in call back url for PayPal - IPN and this is quite another process as customer has).

Wit PayPal IPN the affiliate routine never run with proper variables (variables like order id and amount are empty)

By PayPal Standard customer MUST return to your store - order status depends to page parameters going with return parameters and Affiliate Modules work properly if order payment is success. IF customer does not return to your store PayPal payment process is done - no order status change, no affiliate routine is running.

ADDED LATER

I have noticed that Affiliate code was added to Print Order Gateway in CC3.0.8 :( however doesnt work properly.

1) Basket session data are cleared just before Affiliate code => Order Id is empty

2) For some reason $order[0]['prod_total'] = $result[0]['prod_total']; doesnt work in first cycle ($i=0)

Use this code:

$print_order_form->parse("order_form");

	

$print_order_form->out("order_form");





	// add affilate tracking code/module

	$affiliateModule = $db->select("SELECT folder, `default` FROM ".$glob['dbprefix']."CubeCart_Modules WHERE module='affiliate' AND status = 1");



	if($affiliateModule == TRUE) {



		$order[0]['prod_total'] = $result[0]['prod_total'];	

		for($i=0; $i<count($affiliateModule); $i++){

			

			include("../../../modules/affiliate/".$affiliateModule[$i]['folder']."/tracker.inc.php");

			echo $affCode;

		

		}

	

	}



	// empty basket

	$basket = $cart->emptyCart();


instead of this 
	// empty basket

	$basket = $cart->emptyCart();

	

$print_order_form->parse("order_form");

	

$print_order_form->out("order_form");





// add affilate tracking code/module

	$affiliateModule = $db->select("SELECT folder, `default` FROM ".$glob['dbprefix']."CubeCart_Modules WHERE module='affiliate' AND status = 1");



	if($affiliateModule == TRUE) {

	

		for($i=0; $i<count($affiliateModule); $i++){

			

			include("../../../modules/affiliate/".$affiliateModule[$i]['folder']."/tracker.inc.php");

			// VARS AVAILABLE

			// Order Id Number $basket['cart_order_id']

			// Order Total $order[0]['prod_total']

			//$basket['cart_order_id'] = $_POST['x_invoice_num'];

			$order[0]['prod_total'] = $result[0]['prod_total'];

			echo $affCode;

		

		}

	

	}

Where would I edit this code?

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...