BigCommerce Integration : Helpdesk

BigCommerce Integration

<script>
(function(){
    var script = document.createElement("iframe");
    script.width = 1;
    script.height = 1;
    script.frameBorder = 0;
    script.nid = "TO_BE_PROVIDED";
    script.oid = "TO_BE_PROVIDED";
    script.transaction_id = ""; //Optional
    script.amount = %%ORDER_SUBTOTAL_DISCOUNTED%%;

    script.order = {
        oid: "%%ORDER_ID%%",
        amt: "%%ORDER_SUBTOTAL_DISCOUNTED%%",
        bs: "",
        bc: "",
        cc: "",
        items: [],
    };
    script.src = "https://www.servecvr.com/?nid=" + script.nid + "&oid=" + script.oid + "&transaction_id=" + script.transaction_id + "";
    script.src += "&amount=" + script.amount;

    if (script.order) {
        script.src += "&order=" + encodeURIComponent(JSON.stringify(script.order));
    }

    document.getElementsByTagName("body")[0].appendChild(script);
})();
</script>
<noscript><img src="https://www.servecvr.com/?nid=TO_BE_PROVIDED&oid=TO_BE_PROVIDED&amount=%%ORDER_SUBTOTAL_DISCOUNTED%%" height="1" width="1" style="display:none;"/></noscript>


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.