[ic] order profiles

Ed LaFrance interchange-users@lists.akopia.com
Wed May 30 14:20:02 2001


At 07:23 PM 05/29/2001 -0600, you wrote:
>Dear List,
>
>I'm trying to require certain information on a form, and do CC# processing
>on a form that is NOT in the checkout process.  I've setup an order profile,
>but it doesn't appear to even be accessing the profile.
>
>In profiles.order I added this:
>
>__NAME__                            cc_saver_dude
>&credit_card=standard keep
>&set = rand_var MACHO
>&fatal=yes
>__END__
>
>Below is my form.  I never get errors, and when I test for [value rand_var]
>it never has a value.  mv_credit_card_valid is never set, and neither is
>mv_credit_card_type.  I'm able, however, to access the # with the CGI var.
>
>Any information on how to get profiles to work on non-checkout pages, or how
>to get the CC info to be encrypted and validated at a time other than the
>final placing of the order would be helpful.
>
>Thanks,
>
>Russ

Did you reconfigure the catalog after writing your new order profile?

- Ed L.





><form action="[process-target]" method="post" name="checkout">
><input type="hidden" name="mv_session_id" value="[data session id]">
><input type="hidden" name="mv_order_profile" value="cc_saver_dude">
>[if type=explicit compare="[error all=1 show_var=1 keep=1]"]
><P>
><font __FFACE__ size="2"><b>There were errors in your last submission.</b>
><br>
>They are shown in <FONT COLOR=__CONTRAST__><b><u>THIS COLOR</u></b></FONT>
>below.</FONT>
><P>
>[/if]
>
><input type="hidden" name="mv_doit"          value="refresh">
><input type="hidden" name="mv_nextpage"      value="test">
><input type="text" name="mv_credit_card_number" size="30" maxlength="30"
>value="[cgi mv_credit_card_number]">
><select name="mv_credit_card_exp_month">
>[loop
>lr=1
>option=mv_credit_card_exp_month
>list="
>1       01 - January
>2       02 - February
>3       03 - March
>4       04 - April
>5       05 - May
>6       06 - June
>7       07 - July
>8       08 - August
>9       09 - September
>10      10 - October
>11      11 - November
>12      12 - December"]
><option value="[loop-code]"> [loop-pos 1]
>[/loop]
></select>
><select name="mv_credit_card_exp_year">
>[loop option=mv_credit_card_exp_year lr=1 list=`
>my $year = $Tag->time( '', { format => '%Y' }, '%Y' );
>my $out = '';
>for ($year .. $year + 7) {
>/\d\d(\d\d)/;
>$last_two = $1;
>$out .= "$last_two\t$_\n";
>}
>return $out;
>`]
><option value="[loop-code]"> [loop-pos 1]
>[/loop]
></select>
><input type="submit" value="Save Information" name="mv_check">
></form>
>
>
>
>---------------------------------------------
>"Posterity -- you will never know how much it has cost my generation to
>preserve your freedom. I hope you will make good use of it." --John Quincy
>Adams
>
>_______________________________________________
>Interchange-users mailing list
>Interchange-users@lists.akopia.com
>http://lists.akopia.com/mailman/listinfo/interchange-users

===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================