Contrib type:
ModuleStatus:
Initial uploadCompatibility:
Ubercart Alpha 8This module create affiliate tracking functionality for Ubercart. Its still in early development stages, but still ready to test drive. It is continually being updated by various members of the community.
Please leave feedback, comments, suggestions here.
Module history: http://www.ubercart.org/forum/support/1586/how_are_people_doing_affilate....
| Attachment | Size |
|---|---|
| uc_affiliate.tar.gz | 14.39 KB |


Update for uc_affiliate
Attached is a new version of the uc_affiliate module. I've made the following changes in this release:
Please contribute to the discussion here with any comments or questions.
What are requirments?
What are requirments for this module?
a wild card subdomain
Except a wild card subdomain.
Like : myUser.myDomain.com and myUser will get the commission
Nothing else...
Zitun
Subdomain
So for each new user i must create a subdomain?
My hosting has a limit count of subdomains.
Can the affiliate link be the same as for original drupal affiliate module (www.site.com/?a=[uid])?
And one more question:
Is there a kind of account? From where user can get money to buy some products in the shop?
Another kind of affiliate link
As i have mentioned - i can't do a subdomain for each affiliate user, so i want to make links in this way
www.site.com?a=[uid]To do this i have modify the function uc_affiliate_click (i write new code between comments [e+] and [e-])
<?php/**
* Records affiliate ID in the user session and counts the click.
*/
function uc_affiliate_click() {
// See if the URL references an affiliate in the subdomain
$subdomain = get_subdomain();
if ($subdomain && $subdomain != 'www') {
... Here goes unchanged code ...
} else {
/*[e+] else we use a link like this site.com/?a=uid*/
$aid = (int)$_REQUEST['a'];
if ($aid !== 0) {
// Lookup the affiliate's account
$account = user_load(array('uid' => $aid));
// make sure we have a valid account and make sure they have affiliate perms
if ($account && user_access('act as affiliate', $account)) {
// store affiliate id in session and increment click count
if (!$_SESSION['affiliate']) {
$_SESSION['affiliate'] = $account->uid;
uc_affiliate_add_count($account->uid, 1, 0, 0);
}
}
/*we need no redirection*/
}
/*[e-]*/
}
}
?>
This code is work for me. Maybe we may include it in new release!
New version of affiliate
Has new features
- affiliate links can be in such format: www.site.com/?a=[uid]
- translate file to russian language
Has some improvements
- a lot of strings are chaged to be a parameters of the translation function
installed in modules what next?
Hi Guys,
I found the affiliate admin interface menu
Basically, will I have to setup myself the affiliate pages as seen on http://www.i-fitnesscenter.com/affiliate/, the showcase for this module where users need to signup?
I am aware I will have to create the banners and such...
Hi, I don't really
Hi,
I don't really understand your question. As soon as someone has a account he can use the affiliate section as soon as his role can act as an affiliate...
This module is very simple and powerful...
Hope this help,
Zitun
Re: Hi, I don't really
Thanks Zitun, yeah my initial confusions cleared up. I should have spent a bit more time exploring the module before posting my question..
It all works and is indeed fantastic
Just what I was looking for.
French translation
Hi,
I used the uc_affiliate
version 16.01.08 by Eugefversion and translate the po.Becareful I noticed in this version a new table uc_affiliate_paid and a new column in the table uc_affiliate_count
Here is the french po. Yet it's not perfect, it's a good beginning.
user warning: Table uc_orders doesn't exist query
Hi,
Has any of you had this when clicking on the commissions page with the latest Ubercart version? The user I clicked with had no commissions yet...
user warning: Table 'mydbname.uc_orders' doesn't exist query: SELECT uco.uid, uco.billing_first_name, uco.billing_last_name, ac.order_id, uco.created as order_date, ac.commission_notes, uco.order_total, ac.commission FROM test_uc_affiliate_commission ac INNER JOIN uc_orders uco on ac.order_id = uco.order_id WHERE aid = 1 AND uco.created between 1201816800 AND 1204322399 in mydrupalpath/includes/database.mysql.inc on line 172.
Cheers,
G
not installed
hi
i installed it on a fresh site without content or users and i got the following message:
You are attempting to access an affiliate store that does not exist. Please check the address and try again.
i dint know what to do, so i ended up uninstalling it.
however, the message still shows up. i check the db. the tables are gone. what do i do?
i used the eugef version
Re: not installed
Maybe you install site on 3rd level domain (like this sub.site.com)?
This affiliate works correctly only with 2nd level domains (site.com) because sub.site.com is an affiliate store of user "sub".
ahh
i see
my drupal shop is a sub multi site setup.
but that still doesnt explain why after uninstalling it the message is still there
This is explanation: For
This is explanation:
For example your site has address - sub.site.com
User enters your site, Affiliate module extract subdomain name and gets "sub" - it consider that "sub" is a login of user which is an affiliater - but it don't find such user (and its shop).
So affiliate module thinks that sub.site.com is an affiliate shop of www.site.com!
Disable subdomain
Until we have a method for choosing the type of affiliate links (subdomain vs. query string) we want, I've completely disabled subdomain checking:
#Line 916, eugef's version
# $subdomain = get_subdomain();
$subdomain = "www";
In addition to choosing whether or not we want subdomain-based links, it would be helpful to use clean URLs for the affiliate links.
removing affliate module
i cant remove this module
my subdomain is in the form of ubercart.example.com and that is where it was installed.
i did a disalbe module, an uninstall module, went into the database and deleted the module's tables and went into drupal's system table to delete the listing of the module. and i have physically removed it from the file system.
what else is left to remove the message?
Re: Update for uc_affiliate
Is it working with ubercart beta 5?
Re: Affiliate
Here are some ideas for the affiliate module.
Add support for the "user referral" module. This module already has some referral functionalities.
With the help of this module, the user will have a unique referral id.
By default, the user will have a referral URL generated by the "user referral" module.
When a visitor will visit the website from an affiliate URL and buy something, the referring member will obtain his commission.
Another idea will be to use a product URL and add /refer/ to the end of the pruduct url for generating the affiliate url for the product. *The referring Id will be the unique user referral id that is generated from the "user referral" module.
It will be good to have a link on the product page named "promote this product" with a link that will redirect the user to a page that will show the affiliate link for the product and all of the affiliate urls for the products of the website.
It will be good to have an option for enabling the affiliate link per product in the setting page of the affiliate module.
By adding support for the user referral module, the users will have an affiliate URL for redirecting visitors to the main page of the website (already supported by the module) and the ability to use an url like www.site.com/product/1/refer/ for being able to send visitors to a special product page.
This is some ideas.
Sorry for my poor English
Thank You.
Re: Re: Affiliate
I can also contribute to this project by giving 100$ to the member that will develop this functionnality.
Re: Re: Affiliate
Affiliate module has its own refering id for each user, but it is easy to set up any other.
If your product page is www.site/com/product/234.htm then refering url for this can be www.site/com/product/234.htm?a=[refering_id] - this functionality affiliate module has now.
So, okday, if you have more information about this task - contact me please.
By the way, my native language is Russian
Re: Re: Re: Affiliate
is there another admin page? So i see one under store configuration > affiliates and I notice that there are options under 'my account' but I am looking for a place to make image and text links but i cant find them. Am i supposed to do this on my own? How do i make a link for site.com/anyproduct/htm etc?
Are there any instructions on how to setup this module to start an affilaite? Best regards,
Aaron
Re: Re: Re: Re: Affiliate
For now affiliate module don't have possibility to make image and text links.
New to Affiliate module
I recently installed the Affiliate module and I am having the same issue; no documentation anywhere on how to get the module fully functioning. How did ipodfitnesscenter.com setup their affiliate program? Point me in the right direction and I'll gladly write a howto to contribute to the project.
Don't get it....
How do you figure out the text link for the affiliate partner?....i would fund some documentation as well how about $50.00....how long does the affiliate tracking last...is it only tracked for one session where if referred user leaves and comes back on a natural web search would the affiliate still get the credit? thanks...luv the addition of affiliate.
also i should mention that i am using uc_affiliate version 16.01.08 by Eugef
jamie
Re: Affiliate
What is it that you are not getting?
Here is how it was done:
http://www.ubercart.org/forum/support/1586/how_are_people_doing_affilate...
Re: Affiliate
Once the commission is registered, does the module tie in with paypal to automatically pay the affiliate?