Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

need help customizing signup for pay account

Quote Reply
need help customizing signup for pay account
I'm so close, just missing something here... What I'm trying to do is have both free and pay accounts and automate everything. I have most everything working right so that if a person signs up for a premium account, it works up until it prints a new template I created called join_pay.htm Where I think I'm getting stuck is in user/join.cgi..

I've replaced this line at the very end of user/join.cgi
GMail::NoAuth->print_page($CFG->{templates}->{join_success});

with the following
if ( $IN->param(users_account_type => 'Premium') ) {
GMail::NoAuth->print_page($CFG->{templates}->{join_pay});
} else {
GMail::NoAuth->print_page($CFG->{templates}->{join_success});
}

I think what's wrong is this line
if ( $IN->param(users_account_type => 'Premium') ) {
and that it's not matching the field in my signup page called users_account_type...

Anyone have any ideas what I need to do to match that parameter so it will print the right template for me...
Thx...

Quote Reply
Re: [JerryP] need help customizing signup for pay account In reply to
Shouldn't that be:
Code:
if ($IN->param('users_account_type') eq 'Premium') {


Adrian
Quote Reply
Re: [brewt] need help customizing signup for pay account In reply to
That didn't work, I'm still getting sent back to the regular join page with all the info parsed in it and the data does get entered in the database... more digging Unsure
Quote Reply
Re: [JerryP] need help customizing signup for pay account In reply to
found it, turns out that part of the printing is in sub parse_params of NoAuth.pm... thx.