
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] How do I handle a "checksum" like field?
- To: interchange-users@interchange.redhat.com
- Subject: Re: [ic] How do I handle a "checksum" like field?
- From: Jay Flaherty <fty@mediapulse.com>
- Date: Tue, 6 Nov 2001 14:05:46 -0500
- In-Reply-To: <200111061703.fA6H33j04781@interchange.redhat.com>
- Organization: Mediapulse.com
- References: <200111061703.fA6H33j04781@interchange.redhat.com>
On Tuesday 06 November 2001 12:03 pm, Mike Heins wrote:
>
> Quoting Jay Flaherty (fty@mediapulse.com):
> > On Monday 05 November 2001 12:09 pm, Christopher Miller wrote:
> > >> On Sun, Nov 04, 2001 at 01:18:37PM -0500, Jay Flaherty wrote:
> > > Do it in the profile for the checkout page. Return a different
> > successpage > depending on success or failure (or it sounds like you
> > would prefer to loop > back to checkout). Look up profiles, successpage,
> > failpage in docs.
> > Thanks for the reply Chris,
> >
> > That is my problem. I don't know how to set up etc/profiles.order to
> > check for a valid CD key. Do I put it in a perl block like this:
> > [perl]
> > my $cd_key = $Values->{cd_key};
> > my $unlock = $Tag->unlock_me($cd_key);
> > if ($unlock eq "") {
> > return "mv_cdkey_valid=required CD key fails tests.";
> > }
> > [/perl]
> > I'm just not sure how this file works. Do I need to set
> > $VEND::Session->errors{cd_key} (or something)?
> > in pages/ord/checkout.html I have:
> > <tr bgcolor="#AAAAAA">
> > <td align=right colspan=6>
> > <font __FFACE__ size="1">[error name=mv_cdkey_valid std_label="CD
> > KEY" required=1]</font>
> > </td>
> > </tr>
> > <tr bgcolor="#AAAAAA">
> > <td ALIGN=LEFT colspan=6>
> > CD KEY: <input type="text" name="cd_key" value=[value cd_key]>
> > </td>
> > </tr>
> > In catalog.cfg I have my working UserTag unlock_me
> >
> > Anymore help would be greatly appreciated. Thanks...jay
>
> What you have looks reasonable to me. Assuming the $Tag->unlock__me works
> in embedded Perl, it should work fine.
>
> Make sure you reconfig the catalog after adding that little thing
> to etc/profiles.order (in the checkout_profile area).
Thank you so much Mike and Chris :-)
This works beautifully. Why didn't I just test it out myself? Maybe I did not
have the confidence to trust my "winging it" ;-) Though I am pleased my
"winging" was right on the money. Some day I hope I can return the favor. I
have done some pretty neat things with IC (mostly using [perl] blocks). Some
day I wil finally wrap my head around the more elegant template syntax and
then look out :-)
Again thanks...Jay
########################
Jay Flahery
Mediapulse, Inc.
fty@mediapulse.com
--
Jay Flaherty
Mediapulse, Inc.
fty@mediapulse.com
(865)482-4455
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users