Hi we are considering using Bronto remarketing. To make this work we need to create a summary of the order, at the receipt page, in a style that the bronto system can read. like this below.
As we know the code for the cart receipt page is quite complex. I think if every order only had one line it would be simpler, maybe, but how to do it when there might be multiple lines?
(This is an example supplied by bronto for another store. The first part is the "header", followed by three order lines).
<script type="text/javascript">
var jsonCart ={
"orderId":"",
"customerCartId":"2592a772-e6d8-42f1-ae47-9455194cc823",
"grandTotal":"$899.88",
"subtotal":"$899.88",
"discountAmount":"",
"url":"http://www.paulfredrick.com",
"currency":"USD",
"taxAmount":"$0.00",
"lineItems":[
{
"other":null,
"imageUrl":"https://a248.e.akamai.net/f/248/9086/10h/origin-d5.scene7.com/is/image/PaulFredrick/RHJ560N_11?$bag_thumb_rect$",
"unitPrice":"$299.96",
"sku":"RHJ560N",
"category":"Suits",
"description":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"productUrl":"http://www.paulfredrick.com/Catalog/PFProductDetails.aspx?Category=Suits&ProductId=RHJ560N",
"name":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"quantity":"1",
"salePrice":"0",
"totalPrice":"$299.96"
},
{
"other":null,
"imageUrl":"https://a248.e.akamai.net/f/248/9086/10h/origin-d5.scene7.com/is/image/PaulFredrick/RHJ560N_11?$bag_thumb_rect$",
"unitPrice":"$299.96",
"sku":"RHJ560N",
"category":"Suits",
"description":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"productUrl":"http://www.paulfredrick.com/Catalog/PFProductDetails.aspx?Category=Suits&ProductId=RHJ560N",
"name":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"quantity":"1",
"salePrice":"0",
"totalPrice":"$299.96"
},
{
"other":null,
"imageUrl":"https://a248.e.akamai.net/f/248/9086/10h/origin-d5.scene7.com/is/image/PaulFredrick/RHJ560N_11?$bag_thumb_rect$",
"unitPrice":"$299.96",
"sku":"RHJ560N",
"category":"Suits",
"description":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"productUrl":"http://www.paulfredrick.com/Catalog/PFProductDetails.aspx?Category=Suits&ProductId=RHJ560N",
"name":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"quantity":"1",
"salePrice":"0",
"totalPrice":"$299.96"
}
]
};
</script>
As we know the code for the cart receipt page is quite complex. I think if every order only had one line it would be simpler, maybe, but how to do it when there might be multiple lines?
(This is an example supplied by bronto for another store. The first part is the "header", followed by three order lines).
<script type="text/javascript">
var jsonCart ={
"orderId":"",
"customerCartId":"2592a772-e6d8-42f1-ae47-9455194cc823",
"grandTotal":"$899.88",
"subtotal":"$899.88",
"discountAmount":"",
"url":"http://www.paulfredrick.com",
"currency":"USD",
"taxAmount":"$0.00",
"lineItems":[
{
"other":null,
"imageUrl":"https://a248.e.akamai.net/f/248/9086/10h/origin-d5.scene7.com/is/image/PaulFredrick/RHJ560N_11?$bag_thumb_rect$",
"unitPrice":"$299.96",
"sku":"RHJ560N",
"category":"Suits",
"description":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"productUrl":"http://www.paulfredrick.com/Catalog/PFProductDetails.aspx?Category=Suits&ProductId=RHJ560N",
"name":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"quantity":"1",
"salePrice":"0",
"totalPrice":"$299.96"
},
{
"other":null,
"imageUrl":"https://a248.e.akamai.net/f/248/9086/10h/origin-d5.scene7.com/is/image/PaulFredrick/RHJ560N_11?$bag_thumb_rect$",
"unitPrice":"$299.96",
"sku":"RHJ560N",
"category":"Suits",
"description":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"productUrl":"http://www.paulfredrick.com/Catalog/PFProductDetails.aspx?Category=Suits&ProductId=RHJ560N",
"name":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"quantity":"1",
"salePrice":"0",
"totalPrice":"$299.96"
},
{
"other":null,
"imageUrl":"https://a248.e.akamai.net/f/248/9086/10h/origin-d5.scene7.com/is/image/PaulFredrick/RHJ560N_11?$bag_thumb_rect$",
"unitPrice":"$299.96",
"sku":"RHJ560N",
"category":"Suits",
"description":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"productUrl":"http://www.paulfredrick.com/Catalog/PFProductDetails.aspx?Category=Suits&ProductId=RHJ560N",
"name":"100% Wool Stripe Double Breasted Peak Lapel Suit",
"quantity":"1",
"salePrice":"0",
"totalPrice":"$299.96"
}
]
};
</script>