
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Multiple page checkout
Okay, here's the trouble of the week : )
I'm running 4.81, working from a foundation demo. I'm trying to do a
two-page checkout. I wan the first page to be checked via the order profile
before moving on to the second. So I create a simple profile in
profiles.order:
__NAME__ test_profile
fname=required
lname=required
address1=required
city=required
state=required
zip=required
&fatal=yes
&final=no
__END__
Then I set the checkout page thus: (just the relivant parts)
Errors: [error all=1 show_error=1 joiner="<BR>"]
<FORM ACTION="[process secure=1]" METHOD="POST" name=checkout>
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
<INPUT TYPE=hidden NAME=mv_doit VALUE=refresh>
<INPUT TYPE=hidden NAME=mv_nextpage VALUE="ord/checkout">
<INPUT TYPE=hidden NAME=mv_order_route
VALUE="[either]__ORDER_ROUTES__[or]log main copy_user[/either]">
<INPUT TYPE=HIDDEN NAME=mv_check VALUE="Save_database">
<input type=hidden name=mv_order_profile value=test_profile>
<input type=hidden name=mv_successpage value=ord/checkout2>
<input type=hidden name=mv_failpage value=ord/checkout>
[button
name="mv_click"
src="order.gif"
text="Place Order"
hidetext=1
form=checkout
]
mv_todo=submit
[/button]
[button
name="mv_click"
src="__THEME_IMG_DIR__recalculate_button.gif"
text="Recalculate"
hidetext=1
form=checkout
]
mv_todo=refresh
[/button]
Obviously, I want it to be sure all the fields are okay, then go to page 2.
As it is, whether I enter correct information or not, it reloads the current
page and does not show any errors. When I change the failpage to another
page, it loads that page, and won't display errors there either. I've
tweaked about everything I can think of.
Any ideas or alternate approaches?
Thanks,
JT
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users