9 replies [Last post]
duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
Was this information Helpful?

I'm trying to figure out how to do the following:

1. customer signs up for 1 week free trial, where his role is assigned to "member" for 1 WEEK
2. after 1 week recurring billing kicks in and charges the customer $12 (every month) and changes his role assignment to 1 MONTH.
3. if recurring billing is unsuccessful, then rewoke "member" role, and switch to "registered"
or
3a. if membership is cancelled, do not rebill, and switch to "registered".

The part where i'm not sure about is how to set the role assignment for the 1 week free trial (1 week "member" assignment), where it would, after 1 week, bill to $12/month AND increase the role assignment from 1 week to 1 Month.

How would i do this?

duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
Re: (roles+recurring) 1-week free trial followed by $12.00 per m

i just thought of this... workflow-ng

set it set it up as follows...

1 week free trial
Recurring fee When product 1-week-trial is purchased, add a fee for $12.00 charged first after 8 days and every 1 months after that indefinitely.
Role assignment SKU: 1-week-trial

Role: Member
Expiration: 1 month(s)
Shippable: No
Multiply by Quantity: Yes

THEN...

on workflow NG, tell it to change the role back to "registered" if recurring billing is declined....

?

duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
blah... can't do this with

blah...

can't do this with workflow ng--unless maybe with "custom php" selection.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: blah... can't do this with

Hey duntuk, I'm looking through the roles code and seeing that there really is no way for a workflow configuration or hook to interact w/ it properly. I may end up doing some of this later today after I finish some other client code. If I get to it, I'll be sure to post up here.

duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
Re: (roles+recurring) 1-week free trial followed by $12.00 per m

thanks Ryan, you're the best!

duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
this works...

Here's what i did...

I created a product kit containing 2 products:

1x "free 7 day trial" with user role promotion to "member" for 7 days.
1x recurring monthly $12/month which is first billed AFTER 7 Days, plus user role promotion for 30 days to "member".

also...
since i didn't want to allow these 2 products to be purchased separately, I unpublished the above 2 products... (which still made them active in the "Product Kit"

Then there was the problem of the 2 products showing up in the Product Kit with their own links (which led to an error page, since they weren't published--i guess this is a bug)...
Thankfully, the links had a CSS class associated with them, which allow me to hide them from display (e.g. display:none; )

and there was another problem with the quantity field... I didn't want to show this. So i hid that too via CSS (i think that's a bug too for the Product Kit)....

oh... and the product kit doesn't allow you to select "input format" (e.g. Full HTML, PHP)... so that's probably gonna get fixed in later versions...

Now.......

the thing i DON'T know is: How does the user cancel recurring payments?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: this works...

Will bookmark the thread for Lyle to check out when he returns from Hawaii. Might be the qty. box is indeed screwed up for product kits. Smiling

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: this works...

The input format was added in today. The quantity field should go off the same setting that products do. I'm not sure what other parts I should pay attention to.

ryanschmidt's picture
Offline
Joined: 11/17/2008
Juice: 235
duntuk wrote: I created a
duntuk wrote:

I created a product kit containing 2 products:

1x "free 7 day trial" with user role promotion to "member" for 7 days.
1x recurring monthly $12/month which is first billed AFTER 7 Days, plus user role promotion for 30 days to "member".

I am not sure I understand this. I am looking to offer my "level 1 subscription" with a 14 day free trial. According to the above, I should be able to set the recurring to wait 14 days before charging. However, the only way I can think to make this work is by changing the initial product price to 0.00 and the options (monthly & annually) both to 0.00 as well and just let the recurring module take care of the charging. I set my product up like that but it seems to be charging 1.00.

How were you able to allow the user to order this product kit without charging them anything?

duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
Re: duntuk wrote: I created a

we ended up using the authorize.net cim method (http://www.ubercart.org/contrib/2537)... authorize.net allows you to do $0 checkout... and the $1 charge may be just a temporary method of validating the credit card by your cc processor....

note: i know when i get gas at Costco, my card gets a temporary (pending) charge of $50 (it doesn't actually go through) and then it disappears from my online statement after a few hours)... so that $1 charge may be just the same, a temporary charge that actually doesn't get charged.