[ic] Receipt.html and URL Parameters

Ron Phipps rphipps at reliant-solutions.com
Thu Mar 23 10:59:24 EST 2006


> From:  Kevin Walsh
> Sent: Thursday, March 23, 2006 7:22 AM
> 
> 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. :-
> )

This is exactly what we had to do to get the google code to work correctly.
This is really an issue with Google's api, they should allow you to pass the
page name in their script so that it does not have to rely on the url in the
browser.

-Ron




More information about the interchange-users mailing list