Integration with Webform module

8 replies [Last post]
Mambo89
Offline
Joined: 11/07/2009
Status: 
Answered

Hi Leighton!

We talked about 1 year ago:) I would like to know if the integration with Webform module is already made? http://drupal.org/project/webform

I think that most non-US people doesn't buy with credit cards in their own country. Sure, we buy on amazon a few times per year, but we buy every week or month in our country. And when we browse through local websites, we order by mail and then pay when postmen brings the package.

I own a number of websites where is only 1 product on sale. I can't force the users to register before ordering (filling web form) because that would hurt my sales.

I use webform module to collect the orders and I really like it. It would be awesome if I could also use it with your affiliate suite. Affiliates would need to register but the buyers wouldn't notice a difference. I would really love that and I have been very patient for more than 1 year. If you can't build that feature in your next release I will be forced to hire a programmer to do modifications instead.

I hope you will find the time. I think that with that one tiny upgrade, you will attract much more new buyers, then any additional payment system would.

Thanks!

Mambo

Leighton Whiting
Offline
Joined: 06/02/2009
Mambo, I'm not sure I

Mambo,

I'm not sure I understand what you are needing exactly...

Are you using Ubercart to make the sales, or only post?

Sincerely,
Leighton Whiting

Abilnet
Offline
Joined: 12/07/2009
I suppose OP is first taking

I suppose OP is first taking care of the sale & delivery & collecting money, and afterwards sending customers to a webform to register their product & sale... then the "thank you" -page of the webform could trigger the sale for an affiliate?

If this is the case, it could be useful in some cases... but as far as I understand, not too common scenario in Europe, though (mainly using Credit Cards, Direct Deposit, PayPal, MoneyBookers etc)

Mambo89
Offline
Joined: 11/07/2009
I have to disagree. Most of

I have to disagree. Most of the people from EU don't pay with credit cards in their own country. Why should they when they can pay after the goods are send and brought by postman. It makes them feel safer and also not all of them have credit cards. What about selling to teens? The only underage people with paypal are IM gees:)

Nevertheless, I think that my request isn't complicated and could be added with little effort and I am also willing to pay for it if you don't want to do in next update.
Let me explain again:

I only need that when user comes to my page through affiliate link and puts their info in the webform, the affiliate gets credits for referring a successfully completed webform. Then I can send the user the goods via mail and they pay the delivery service and they pay me.

The other scenario is that I send the buyer receipt via mail and after they make a deposit, I send them the package via delivery service.

In both cases... after I get paid, I manually confirm the sale in affiliate program and the affiliate status ''successfully completed webform'' changes to ''successfully completed purchases''.

I would say that half of EU is not jet comfortable paying with their credit cards and they won't start using them since we have so much other manual ways to pay. I know, it sux for IM businesses and for aff tracking in general, but there is nothing I can do. If I only offer payment with CC or PayPal, I will lose 90% of the sales in Slovenia, and we are like more developed than half of the Europe:))

p.s.: I don't use any automated payment gateway. People don't use it.

Leighton Whiting
Offline
Joined: 06/02/2009
The way Affiliates Suite

The way Affiliates Suite works is by automatically granting commission to affiliates when one of their referrals makes a purchase. There are thus two problems with the approach:

1) It sounds like the buyers on your site aren't making user accounts, so there is no way to mark them as referrals of the affiliate.

2) The sales aren't completed automatically, so there is no way to automatically grant the commission.

So any solution would have to be done manually, including manual granting of commission to the affiliate once a payment has been received.

So what you need then is simply a way to show in the Webform submission who the affiliate is that referred the user to that page. This could be done using a 'value' type of webform element, and setting the default value of that element to be equal to the SESSION variable:

$_SESSION['affiliate']

That variable is set by Affiliates Suite whenever a user follows a referral link to the site, so it will be set to the user id of the affiliate if the user came from an affiliate link.

That way, the affiliate user id will be saved when the webform is submitted, and you can use that to manually grant commission to the correct affiliate when the payment is made.

Hopefully that is enough to get you started. Let me know if you need any more pointers or help.

Sincerely,
Leighton Whiting

Mambo89
Offline
Joined: 11/07/2009
You are right. That is

You are right. That is exactly what I was saying. I know that it has to be manual but that's fine since I don't plan to have more than 10, 15 affiliates.

So if I understand you right, I don't need to modify code. OK than, I have these Types available: date, email, fieldset, file, grid, hidden, markup, pagebreak, select, textarea, textfield and time.

I suppose I need to chose hidden so the user won't notice it.
http://www.shrani.si/f/7/vw/4i2kZyUw/aff1.jpg

And for default value I put in $_SESSION['affiliate'].
http://www.shrani.si/f/37/uF/4lUN0tlt/aff2.jpg

Well, even if I add that value in plain text, I think I still get < p >< /p> strukture. Will it wokr?

Leighton Whiting
Offline
Joined: 06/02/2009
Mambo, It looks like Webform

Mambo,

It looks like Webform doesn't support PHP commands for setting default values, only tokens. In that case, we need to add a token for the $_SESSION['affiliate'] variable. Contact me by email and I'll send you an updated version of Affiliates Suite with the new token that you can use for the default value field.

Sincerely,
Leighton Whiting

Mambo89
Offline
Joined: 11/07/2009
Thanks Leighton! You are the

Thanks Leighton! You are the BEST!

Mambo89
Offline
Joined: 11/07/2009
The problem is

The problem is solved:)
Leighton provided a slightly modified module file for aff. suite and then I just putted %session[af_name] in a hidden field inside of web form.

Once again thank you!

Twitter Feed