[ic] Receipt.html and URL Parameters

Kevin Walsh kevin at cursor.biz
Thu Mar 23 10:21:47 EST 2006


Dan Bergan <dan at berganconsulting.com> wrote:
> Mike Heins wrote:
> > It's actually easy. Just use this intead of [process] and mv_todo
> > on the checkout form:
> >
> > 	<form action="[process href=receipt]" method="POST">
> >
> > 	<input type="hidden" name="mv_action" value="refresh">
> >
> >   
> Thanks for the tip, Mike.
> 
> But, this shows "receipt" even if there are errors on the checkout 
> form.  Is there a way to have Interchange only show "receipt" in the URL 
> when the checkout is successful?
> 
A quick hack could be to wrap the "etc/receipt.html" so that the entire
page body (not the template parts) is saved in a scratch variable.  At
the end of the page, [bounce] to "receipt" (which would be in the "pages"
directory instead of "etc", this time).  On the new "pages/receipt.html",
simply display the template and the new scratch.

As I said, it's a quick and dirty hack, but it should work - in theory. :-)

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


More information about the interchange-users mailing list