[ic] Receipt.html and URL Parameters

Dan Bergan dan at berganconsulting.com
Thu Mar 23 10:10:45 EST 2006


Mike Heins wrote:
> Quoting Joshua Lavin (joshua at kingdomdesign.com):
>   
>> On Mar 22, 2006, at 3:38 AM, Phil Dye wrote:
>>
>>     
>>> A long time ago (October 2003!), Gary Norton posted this to the list;
>>>
>>>       
>>>> Their system runs a small generic JavaScript that I have embedded  
>>>> into the
>>>> Template pages so that it is available on every page. It sends the  
>>>> URL of
>>>> each page to their real-time engine.
>>>>
>>>> This engine builds its reports based on the occurrence of  
>>>> particular URLS.
>>>> However the receipt.html shows up process.html and it is messing  
>>>> up their
>>>> stats. Process.html appears far more frequently than the Receipt  
>>>> page is
>>>> delivered.
>>>>
>>>> So I need to come up with a way to change the URL so that their  
>>>> parser
>>>>         
>>> knows
>>>       
>>>> when somebody arrives at the receipt.html page.
>>>>
>>>> If the receipt.html page was displayed as any other name than  
>>>> process.html
>>>> it would work.
>>>>
>>>> I figured that the page name could stay Process.html as long as I  
>>>> added a
>>>> URL parameter such as ?finished=1 or something like that.
>>>>         
>>> . but I can't see a subsequent followup in the archives. I'm now in  
>>> exactly
>>> the same situation, so does anyone have any suggestions how I can  
>>> achieve,
>>> or workaround, this?
>>>       
>> I'd like to have a uniquely-named receipt.html as well, but my lame  
>> workaround for now is to load an image with a CGI parameter on the  
>> receipt page:
>>
>> <img src="ct_ecommerce.gif?ct_ecommerce=[total-cost noformat=1]"  
>> width="1" height="1" />
>>
>> (We use ClickTracks.)
>>     
>
> 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?

Thanks,
Dan


More information about the interchange-users mailing list