Other Store Confirmation Pages PDF Print E-mail

The Confirmation Page Script will need to be installed on your order confirmation page. This script will allow FeedPerfect to track the sales coming from the CSEs. This script will also be installed just before the closing </body> tag for the page. This part of the Integration is located in Step 2 on the integration tab. If you have left the page and are not sure how to get back to this step, the script can be found in the following location:

MyStores->Settings->Integration->Step2

 

Here is an example of what the script may look like.

<script type="text/javascript" src="http://tracking.feedperfect.com/track.js"></script>

 

<script type="text/javascript">

var fpAccount='4333321803';

fpP=?g?;

if (window.fpTrackSale!=undefined) fpTrackSale();

</script>

 

The second part of the script is more complicated and requires knowledge of the variables or values available on the confirmation page of your shopping cart. This can be implemented using either JavaScript or HTML. The choice of which language used for implementation is dependent on which best suits the setup of your shopping cart. Your web developer can best assist you in making this decision.

Both methods require access to the same data. Both transaction and item level data are required. At the transaction level, we will need the Order Number. For the item level we will need, the ProductID, ProductCode, Price and Quantity for each item ordered.

The ProductID has to be the same ProductID that was imported into FeedPerfect. The ProductCode field is meant to represent a merchant Product code, this field can be left blank. The quantity is the number of units ordered for the product, and the Price is the unit price for the product.

 

Javascript example

The JavaScript version is in the following format with an example following:

 

Format

<script type="text/javascript">

fpvT = new Object();

fpvT.OrderID="OrderID"; //the order ID or code

fpvT.Items="product-id-1|product-id-2|...|product-id-n"; //product IDs

fpvT.Codes="product-code-1|product-code-2|...|product-code-n"; //could be same as Item ID

fpvT.Prices="price-1|price-2|..|price-n"; //price of each item (without currency symbol ($))

fpvT.Quantities="quantity-1|quantity-2|...|quantity-n"; //quantity of each item in order

</script>

 

Example

<script type="text/javascript">

 

fpvT = new Object();

fpvT.OrderID="226842";

fpvT.Items="pr-01303|pr-07587|pr-07572|kj-01071";

fpvT.Codes="|||";

fpvT.Prices="0.91|3.26|2.66|10.51";

fpvT.Quantities="10|5|5|1";

</script>

 

Note that the data for ProductID, ProductCode, Quantity and Price is delimited by the pipe ?|? character. All other information should be entered exactly as shown.

 

HTML Form Example

The HTML Form version is in the following format with an example following.

 

Format

<textarea id="fpvT">

O:order-number

I:product-id-1|product-id-2|product-id-3|...|product-id-n

C:product-code-1|product-code-2|product-code-3|...|product-code-n

P:price-1|price-2|price-3|...|price-n

Q:quantity-1|quantity-2|quantity-3|...|quantity-n

</textarea>

</form>

Example

<form style="display:none;">

<textarea id="fpvT">

O:226842

I:pr-01303|pr-07587|pr-07572|kj-01071

C:|||

P:0.91|3.26|2.66|10.51

Q:10|5|5|1

</textarea>

</form>

 

Putting it Together

The two parts of the script will go before the closing </body> tag of the confirmation page. The HTML Form or JavaScript product section will go first followed by the confirmation script provided from FeedPerfect.

 

HTML Example

</tr>

</table>

</div>

<form style="display:none;">

<textarea id="fpvT">

O:226842

I:pr-01303|pr-07587|pr-07572|kj-01071

C:|||

P:0.91|3.26|2.66|10.51

Q:10|5|5|1

</textarea>

</form>

<script type="text/javascript" src="http://tracking.feedperfect.com/track.js"></script>

<script type="text/javascript">

var fpAccount='4333321803';

fpP=g;

if (window.fpTrackSale!=undefined) fpTrackSale();

</script>

</body>

Javascript Example

</tr>

</table>

</div>

<script type="text/javascript">

fpvT = new Object();

fpvT.OrderID="226842";

fpvT.Items="pr-01303|pr-07587|pr-07572|kj-01071";

fpvT.Codes="|||";

fpvT.Prices="0.91|3.26|2.66|10.51";

fpvT.Quantities="10|5|5|1";

</script>

<script type="text/javascript" src="http://tracking.feedperfect.com/track.js"></script>

<script type="text/javascript">

var fpAccount='4333321803';

fpP=g;

if (window.fpTrackSale!=undefined) fpTrackSale();

</script>

</body>

See Also:

The Landing Page