Affiliate tracker - this will display the name of the person who referred

  • David Buch
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 weeks 3 days ago #132797 by David Buch
Hi

A bit of code snippet for anyone who links to Affiliate tracker - this will display the name of the person who referred the the subscriber in a field on the registration form

You need to add a custom field - in theis case I called it Referrer, but you can call it what you want, just remember to change the name in the code
I also added CSS to make the field readonly eg:
#Referrer{
pointer-events: none;
border-color : grey;
color:grey;
}

to use this code - create a folder called override under components/com-osmemebership/view/
under this folder create one called register
place the attached code in that folder.
Done.

for reference : membershipprodoc.joomservices.com/develo...thod-in-a-view-class
Attachments:

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 weeks 2 days ago #132804 by Tuan Pham Ngoc
I don't really understand the purpose of the code as I don't have experience with Affiliate Tracker. However, I improved the code to make it better (don't need to copy the whole code of the method, just call parent:: before adding your own logic)

You can get the attached update code below. Thanks for sharing your code to the community

Regards,

Tuan
Attachments:

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

  • David Buch
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 weeks 2 days ago #132816 by David Buch

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 weeks 1 day ago #132822 by Tuan Pham Ngoc
You're welcome. Thanks again

Tuan

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

Moderators: Tuan Pham Ngoc