Jump to content

Jrox JAM intergration into PS ver 1.4.8.3 - How?


Recommended Posts

Long ago I was able to intergrate JAM from Jrox into PrestaShop.

 

Today I did a NEW install for a web site I want to create and intergrate with JAM.

 

The problem is that order-confirmation.php does NOT look like Jrox documentation says it does.

 

I know which JAM code to use,

but did PrestaShop changed the order-confirmation.php file to a more compact coded file?

 

Can anyone help, please?

 

 

note: Im using PrestaShop 1.4.8.3

Edited by JPRIETO (see edit history)
Link to comment
Share on other sites

I am using this code in the order confirmation control file, but still is not recording the sale over...

 

 

 

//START JAM CODE

$JAMIntegrate = file_get_contents("http://affiliatemanagerpro.net/affiliates/sale.php?amount=".$order->total_paid_real."&trans_id=".$id_order."&custom_mid=".$_COOKIE['jrox']);

//END JAM CODE

 

 

Any help would be very much appreciated.

Link to comment
Share on other sites

Well, I tried everything and nothing worked.

I even placed the code in theme tpl file, and still nothing.

I wonder if jrox blocked prestashop to sell their JEM cart.

 

There has to be a good samaritan here who can help us.

 

 

Admin at jrox seems not helpful, perhaps they wish to push their JEM program which is a shopping cart too.

 

Nevertheless, in the past I've found here good people who cared enough to help, and did.

 

Until then, I will pray.

Link to comment
Share on other sites

  • 2 years later...

I found the integration guide here, but i didn't work for me. PLEASE HELP!!!

 

https://jam.jrox.com/kb/article/113/commission-integration-with-prestashop-15.php

 

  1. Open up the /controllers/front/OrderConfirmationController.phpfile. Locate the code block as shown below and add the integration code as show below. Look for the //START AFFILIATE CODE and //END AFFILIATE CODE block to edit.
  2. Make sure to use your affiliate URL for the integration block.
public function displayOrderConfirmation()	{		if (Validate::isUnsignedId($this->id_order))		{			$params = array();			$order = new Order($this->id_order);			$currency = new Currency($order->id_currency);			if (Validate::isLoadedObject($order))			{				$params['total_to_pay'] = $order->getOrdersTotalPaid();				$params['currency'] = $currency->sign;				$params['objOrder'] = $order;				$params['currencyObj'] = $currency;								//START AFFILIATE CODE				$JAMIntegrate = file_get_contents("http://fedora.jemtest.com/jam3/sale/amount/".$params['total_to_pay']."/trans_id/".$this->id_order."/tracking_code/".$_COOKIE['jamcom']);								//END AFFILIATE CODE								return Hook::exec('displayOrderConfirmation', $params);			}		}		return false;	}



			
		
Link to comment
Share on other sites

Remember to replace this code with your own website :

/START AFFILIATE CODE$JAMIntegrate = file_get_contents("http://www.yourwebsite.com/jam3/sale/amount/".$params['total_to_pay']."/trans_id/".$this->id_order."/tracking_code/".$_COOKIE['jamcom']);				//END AFFILIATE CODE

jam3 is your affiliate folder name

 

It's still not working on my prestashop. NO SUPPORT AT ALL from JORX

 

I submitted a ticket 3 weeks ago and still didn't have a reply.

I submitted a post at the JROX forum, but my question is still under review.

 

So don't waste your time on this software.

 

It's beautiful only if it works. I have spend two weeks working on this software and still NOT WORKING.

 

I consider it as a piece of junk. DO NOT BUY THIS JROX Affiliate software

Edited by ChiActivate (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...