- Posts: 5
- Thank you received: 0
Affiliate tracker - this will display the name of the person who referred
- David Buch
- Topic Author
- Offline
- New Member
-
Less
More
5 years 2 months ago #132797
by David Buch
Affiliate tracker - this will display the name of the person who referred was created 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
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
- Tuan Pham Ngoc
- Offline
- Administrator
-
5 years 2 months ago #132804
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Affiliate tracker - this will display the name of the person who referred
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
You can get the attached update code below. Thanks for sharing your code to the community
Regards,
Tuan
- David Buch
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
5 years 2 months ago #132816
by David Buch
Replied by David Buch on topic Affiliate tracker - this will display the name of the person who referred
Great, thanks!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
5 years 2 months ago #132822
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Affiliate tracker - this will display the name of the person who referred
You're welcome. Thanks again
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.