Using a custom thank you screen
Overview
Many merchants chose to create and host a custom thank you screen for their customers. Â Here's how to insure that your customers will be taken to your custom thank you screen upon completion of their order.
At StoreFronts click the Conversion Tracking Tab followed by clicking the Advanced tab under the Conversion and Tracking tab. Â Then simply enter the URL of your Custom thank you screen. Â If your custom thank you screen is not secure (SSL) then click the "Omit Order Data" check box. Â
To finalize click the Save Changes button.
Â
Â
Coding your custom receipt page
Enter the following in your receipt.html page on your site to capture and display the receipt details:
Please notice that the orderText is decoded twice. This is because the orderText will often be encoded twice during the assembly of the redirection url. The double encoding is necessary to prevent parts of the order text from corrupting the url.
<script type="text/javascript" language="JavaScript"> function gup( name ) { name=name.replace(/[\[]/,"\\\]").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; } document.writeln("<PRE>" + decodeURIComponent(decodeURIComponent(gup("orderText"))).replace(/\+/g," ") + "</PRE>"); </script>Â
Passing Additional Information to the URL
Almost all of the token supported in the conversion HTML section can also be used within the custom thank you URL. Â For example if you wanted to pass the current stage of the order over to your thank you page you would add:
¤tstage=[currentstage]
to the URL.  Likewise you could pass the custom fields using the tags [customfield1] through [customfield7]Â
Order Tokens that can be used with tracking pixels and scripts
Tokens that can be usedÂ
[ActivationCodes=<ItemId>]Â
[AffiliateId]Â
[AffiliateSubId]Â
[AffiliateCustomHtml]Â
[BillingFirstName]Â
[BillingLastName]Â
[BillingCompany]Â
[BillingAddress1]Â
[BillingAddress2]Â
[BillingCity]Â
[BillingState]Â
[BillingPostalCode]Â
[BillingCountry]Â
[BillingDayPhone]Â
[BillingEveningPhone]Â
[ChargeAppearsOnStatementAs]Â
[Commission]Â
[Coupon]Â
[CouponForNewAffiliate=CODE]
[CurrentStage]
[CustomField1]
[CustomField2]
[CustomField3]Â
[CustomField4]Â
[CustomField5]Â
[CustomField6]Â
[CustomField7]Â
[DirectTrackProducts]Â
[Email]Â
[GrossProfit]Â
[IfPurchased=<ItemId>]<Conditionally Display>[/IfPurchased]Â
[IfPaymentMethod=<Method>]<Conditionally Displayed>[/IfPaymentMethod]Â
[IfShippingMethod=<Method>]<Conditionally Displayed>[/IfShippingMethod]Â
[OmnitureProducts]Â
[OrderId]Â
[OrderHash]Â
[PaymentMethod]Â
[PaymentProcessed]Â
[ProductIds]Â
[ProductQuantities]Â
[ProductCosts]Â
[ProductCostsWithoutDecimal]Â
[ProductDescriptions]Â
[ProductQuantity1] ... [ProductQuantity#]Â
[ShippingFirstName]Â
[ShippingLastName]Â
[ShippingCompany]Â
[ShippingAddress1]Â
[ShippingAddress2]Â
[ShippingCity]Â
[ShippingState]Â
[ShippingPostalCode]Â
[ShippingCountry]Â
[ShippingDayPhone]Â
[ShippingEveningPhone]Â
[Shipping]Â
[SubtotalAndShipping]Â
[Subtotal]Â
[SubtotalBeforeDiscount]Â
[SubtotalDiscount]Â
[Tax]Â
[Total]Â
[TotalQuantity]
Â
We recommend that you put all your conversion pixels within the UltraCart system, but some trackers can not deal with the multiple domains. If so, make sure that you pass over the currentstage token and check that it's either the value SD (for shipping department) or CO (completed order) before firing the pixels on your page. Otherwise you could be firing conversion pixels for orders that are sent to your Accounts Receivable for fraud review.