- Posts: 5
- Thank you received: 0
How to integrate third party tracking system
We need to populate it with dynamic variable for:
-
AMOUNTOFSALE
-
TRACKINGNUMBER
-
TYPEOFTRANSACTION
Can you help us identify the variable codes?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
i saw that the transaction type is assigned by Shareasale so no need to get the variable for that. I just need the one for the orderid or tracking number.
also, where do i place this code? supposed to be on the thank you page or order confirmation page. how do i find it?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
but it did not track when we made the test purchase. any ideas?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I am having the same/similar situation. Basically. I need to get the orderID and subtotal to the thank-you page. subtotal being total before tax of course.
-Bill
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I got my code now. Performance-based.com wants this code on my thank you page.
I already added the partner_id and TOTAL_WITOUT_VAT variables but I'm guessing before I try it that is not going to work. I think my redirect URL I add to authorize.net for redirect back to the site after the sale should land on a HikaShop shopping cart script and include the needed values from the partner_id and TOTAL_WITHOUT_VAT. Shouldn't it? This way that page would have all the variables to fill in the conversion tracking pixel.
Thanks,
Bill
Please Log in or Create an account to join the conversation.
function onAfterOrderUpdate(&$order,&$send_email){
$config=&hikashop::config();
$confirmed = $config->get('order_confirmed_status');
//if order status is not updated skip
if(!isset($order->order_status)) return true;
$class = hikashop::get('class.order');
$dbOrder = $class->get($order->order_id);
if(empty($allProducts)){
return true;
}
if($order->order_status!=$confirmed){
//if status is not confirmed just skip
return true;
}
$vat = 0;
foreach($allProducts as $oneProduct){
$vat+=$oneProduct->order_product_quantity*$oneProduct->order_product_tax
}
$request = curl_init(' net.performance-based.com/l/259?id=XXX;amount= '.($dbOrder->order_full_price-($vat+$dbOrder->order_shipping_price+$dbOrder->order_discount_price)));
curl_setopt($request, CURLOPT_HEADER, 0);
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
$post_response = curl_exec($request);
curl_close ($request);
}
That way, it will even work when you change manually the status from the back end. That will also have the advantage to work with any payment method and will probably be useful to other users wanting to use performance-based.com
Please Log in or Create an account to join the conversation.
and from your post above combined with the example form joomla.org I created this:
-Bill
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
1. Your files are called notify_performance-based.php.txt and notify_performance-based.xml.txt so you should remove the .txt at the end
2. Avoid using - and _ in names
3. The < > in the class name should not be there. So the class name should be plgHikashopNotify_performance_based
4. You're missing a closing bracket at the end of your code. You should indent your code in order to see that easily.
Attached is a corrected version (not tested though).
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
in the line:
?
-Bill
Please Log in or Create an account to join the conversation.
I got my code now. Performance-based.com wants this code on my thank you page.
Code:
<!--ROIA conversion #259--><img src=" net.performance-based.com/l/259?id=partn...nt=TOTAL_WITHOUT_VAT " alt="" width="1" height="1" border="0" style="width:1px;height:1px;border:0" />
I already added the partner_id
Please Log in or Create an account to join the conversation.
I have bigger problems now. The plugin is installed and enabled. During testing we (my affiliate manager and I) decided that I better simplify the checkout so I set the registration to "no registration". I had the long "old school flow" and step 6 ended up being an empty page. That pretty much ended our conference call until I can get this straight and shorten the flow.
Other issues found while troubleshooting:
1) I did upgrade but now I notice 2 geolocation plugins listed that I never noticed before. I had it disabled during the upgrade so maybe that had something to do with it? The demo site has 2 affiliate plugins ans 2 category plugins.
2) I noticed that if you take the login step out of the checkout flow then you loose the address layout as well. The work around is to leave login_ in the flow but set Login option to no. I verified this on the demo site.
3) The terms of service link does not render the terms of service page (it's broken). I did an override - PLEASE_ACCEPT_TERMS_BEFORE_FINSIHING_ORDER="Please accept the <a href=" www.heatmisersaves.com/terms-of-service " target="_blank">terms and conditions before proceeding"
4) The configuration display tab has a footer section not mentioned in the Help file (unless I'm blind) and I'm curious to know what goes in the Affiliate box?
5) The demo checkout has nice bold titles and borders around the layouts that I don't have.
My biggest issue is that instead of going to authorise.net page I get a big white empty browser. This one has me stumped I hope it's a simple fix.
-Bill
Please Log in or Create an account to join the conversation.
2. Yes. That's not a bug. It's written in the documentation. You can't have the address without the login.
3. It's a problem of quotes. You need to use simple quotes in your HTML.
4. That enables you to add your hikashop.com affiliate id to the footer. That way you can earn money from sales on our website which were brought from your website.
5. That's because hikashop uses your template's styles. On our demo website, there are no styles for the fieldsets so it's the default display. You need to change your template CSS for fieldset styles.
6. A blank screen doesn't help us in knowing from where the problem comes. Could you activate the display_errors option of your php and try again:
www.hikashop.com/en/support/documentatio...-install.html#errors
Please Log in or Create an account to join the conversation.
I could not find the php.ini and your help file says to restart the server. I put in a ticket with iPage. Hopefully it will get completed in the next hour.
Regards,
Bill
Update: The display_error variable was already set to On in the php.ini file. I'm trying to track down the error log files now.
-Bill
www.HeatMiserSaves.com
Update2: This error seems to be appearing at the top of the frontend and backend but I don't know that it has anything to do with the shopping cart, "
Notice: Undefined index: QUERY_STRING in /hermes/bosweb/web070/b706/ipg.heatmisersavescom/libraries/joomla/environment/uri.php on line 161"
Please Log in or Create an account to join the conversation.
I think we have an unrelated error or possibly bug but I'm not sure so I am writing it up here. This error occurs when I logged out of the back end.
Fatal error: Class 'hikashop' not found in /hermes/bosweb/web070/b706/ipg.heatmisersavescom/plugins/user/hikashop.php on line 80.
-Bill
Please Log in or Create an account to join the conversation.
function plgHikashopNotify_performance_based(){
parent::__construct();
to:
function plgHikashopNotify_performance_based(& $subject, $config = array()){
parent::__construct($subject, $config);
in the plugin's code. That's probably why you're getting the blank page.
For the bug when logging out, that's a problem in hikashop. You need to add the code:
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
before the lines:
$userClass = hikashop::get('class.user');
$user_id = $userClass->getID($user,'cms');
in the file plugins/user/hikashop.php
We fixed that problem and published a new build of hikashop on our end.
Please Log in or Create an account to join the conversation.
I replaced the lines as you described for my plugin then ran a test case. The transaction got to the Authorize.net page and I ran a test that did go through. However, I got this message instead of getting redirected back to the orders page.
From secure.authorize.net/gateway/transact.dll
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.
This transaction has been approved.
It is advisable for you to contact the merchant to verify that you will receive the product or service.
I'll let you know how the logout fix goes later.
Thanks for your help and patience.
-Bill
Update1: I am testing the checkout using the bank transfer plugin like in the documentation example. I get this error on the end page.
Notice: Trying to get property of non-object in /hermes/bosweb/web070/b706/ipg.heatmisersavescom/plugins/hikashop/notify_performance_based.php on line 15
When I change the status of this order to "confirmed" I get this error in the lightbox (I hope I'm using the term correctly).
JUser::_load: Unable to load user with id: 112
Please Log in or Create an account to join the conversation.