How to integrate iDevAffiliate tracking system

  • Posts: 12
  • Thank you received: 1
11 years 4 months ago #108857

Hi,
I want to integrate iDevAffiliate (an affiliate tracking software) with Hikashop.
So I'd like to know where I can place my 3rd party tracking pixel code because
I've tried to put it on the locations you specify in the forum but it doesn't work.
Any suggestion?

Thanks
Lorenzo Giacomini

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #108933

Hi Lorenzo,

I don't think this have to do with Hikahsop since this code can be put everywhere on the page (I think).
You can for example put it in the index.php of your template.
However, if you really want to put this code in Hikashop, the view checkout_step should do the job.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 4 months ago #109189

Thanks Eliot,
I need the code to be called only after the purchase is complete. So on the order complete page.
Is there a place in the file where the code should go so that it's called when the order complete page is shown?

eliot wrote: Hi Lorenzo,

I don't think this have to do with Hikahsop since this code can be put everywhere on the page (I think).
You can for example put it in the index.php of your template.
However, if you really want to put this code in Hikashop, the view checkout_step should do the job.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #109199

In this case you can take a look at this documentation: www.hikashop.com/fr/support/documentatio...r-documentation.html
the trigger onAfterOrderUpdate may interest you. If making a plugin seems to complicate, you can also add your code in the view step of checkout (Display>Views)

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 4 months ago #109342

Thanks,
I can't make a plugin because I'm not a coder but if you tell me in what line of the file "step" I have to put the code,
it could help me a lot.
So an instruction like "put that code on line X after the code Y" would be perfect for me!

Thanks in advance

Lorenzo

eliot wrote: In this case you can take a look at this documentation: www.hikashop.com/fr/support/documentatio...r-documentation.html
the trigger onAfterOrderUpdate may interest you. If making a plugin seems to complicate, you can also add your code in the view step of checkout (Display>Views)

Please Log in or Create an account to join the conversation.

  • Posts: 82726
  • Thank you received: 13341
  • MODERATOR
11 years 4 months ago #109409

To tell you exactly in which file to add it, we would need to know the payment methods you're using on your website.
You can read more about all that on this thread and the links we give on that thread:
www.hikashop.com/en/forum/4-how-to/68067...es.html?limitstart=0

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 4 months ago #109616

Thanks Nicolas,
to make things easy I will use only the payment via PayPal.
So can you tell me where to put the code?

Thanks a lot!
Lorenzo

nicolas wrote: To tell you exactly in which file to add it, we would need to know the payment methods you're using on your website.
You can read more about all that on this thread and the links we give on that thread:
www.hikashop.com/en/forum/4-how-to/68067...es.html?limitstart=0

Please Log in or Create an account to join the conversation.

  • Posts: 82726
  • Thank you received: 13341
  • MODERATOR
11 years 4 months ago #109620

It should be in the file "after_end" of the view "checkout" that you can edit via the menu Display->Views.
Note that you need to leave the "return URL" field of the options of the paypal payment method empty if you want it to work.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 4 months ago #109634

Thank you,
can you help me telling in what part of the file I have to put the code?
I need a suggestion like: "Put the code after that line...".

Thanks again.
Lorenzo

Please Log in or Create an account to join the conversation.

  • Posts: 82726
  • Thank you received: 13341
  • MODERATOR
11 years 4 months ago #109636

You can put it at the start.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 4 months ago #109779

We've put the code at the start of "after_end" file on the "checkout" view as you suggested
but it doesn't work because it's called on every step of the checkout process where it should
be called only on the confirmation page of the checkout.

Perhaps it should be placed in "checkout_step"; but I need to know in which line to paste it in
a way that is not called on every step of the checkout.

nicolas wrote: You can put it at the start.

Please Log in or Create an account to join the conversation.

  • Posts: 82726
  • Thank you received: 13341
  • MODERATOR
11 years 4 months ago #109798

The after_end file of the checkout view is NOT called at every step of the checkout.
I can guarantee you that it is not the case.

Simply put the code below at the beginning of that file. That will stop the processing of the page. You will see that this file is not called during the checkout since you will see your checkout.
<?php exit; ?>

Please Log in or Create an account to join the conversation.

  • Posts: 110
  • Thank you received: 6
10 years 7 months ago #148886

Lorenzo, I wanted to know ......did this work for you? I have the same problem. Thanks :(

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
10 years 7 months ago #148899

I send you a PM.

Lorenzo

tomhika wrote: Lorenzo, I wanted to know ......did this work for you? I have the same problem. Thanks :(

The following user(s) said Thank You: tomhika

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
9 years 8 months ago #192488

Is after_end.php the file loaded at the end of the transaction after the payment has been confirmed and returned back to the website from PayPal and other payment plugins? If it is then this is the place to put the code. I'm also going to use iDevAffiliate.

Please Log in or Create an account to join the conversation.

  • Posts: 82726
  • Thank you received: 13341
  • MODERATOR
9 years 8 months ago #192509

Yes, that's indeed the case, but only if you didn't enter any "return URL" in your payment method.

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 2
9 years 7 months ago #194159

What is the URL affiliates use to be tracked? I can't seem to find it and do you plan on using any button to request payment or add a payment threshold or could you provide a code to do that?

I know I ask you a lot of questions but I promise I am doing it to make perfect How-To-Hikashop videos :)


Kyle with a :)

Please Log in or Create an account to join the conversation.

  • Posts: 82726
  • Thank you received: 13341
  • MODERATOR
9 years 7 months ago #194179

Please note that your question is not related to this thread.
You're talking about the configuration of the affiliate system of HikaShop while this thread is about customizing the thank you page of HikaShop to add tracking code for sales tracking for statistics.

There is no particular URL for affiliates to be tracked. They can use any URL of your website and just add their partner parameter: ?partner_id=XXX where XXX is the id of their user in HikaShop.
If you create banners in your backend (menu Affiliates>Banners) the partners will get HTML codes they can use on their website with the partner parameter already added.
You can see an example on our own website: www.hikashop.com/my-account/affiliate-program.html

Adding a request payment button can be done quite easily by modifying the file "show" of the view "affiliate" via the menu Display>Views and adding a link to the contact form of your website.
Having an automatic notification system once a partner reaches a certain threshold could be something we could add in the future. We don't have any plans yet as no one asked for that so far. I guess that it is done manually by most merchants, especially for small shops, the main target of HikaShop, since besides big players like amazon, you don't usually have more than a few dozens/hundreds partners.

The following user(s) said Thank You: penyo311

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 2
9 years 7 months ago #194324

Thank you so much, and apologies for adding to the wrong thread,I had 20 opened trying to find a thread and I replied to the wrong one.

Thank you so much, that is all great to know!

Kyle, with a smile :)


Kyle with a :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.131 seconds
Powered by Kunena Forum