Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated ConfirmationExtra example

...

This example shows a 3rd-Party party script being loaded, and then waited for the code waiting for the external script and the orderSummary object to exist before being invoked.  This example would be appropriate on the ConfirmationExtra-mobile PagePart.

Code Block
languagejs
linenumberstrue
<script type="text/javascript" src="//www.some-shopping-cart-tracker.com/script.js"></script>
<script type="text/javascript">
 ( function _trackerScript() {
        if (typeof (MyTracker) == "undefined") ||   if (typeof (MyTrackerPF.orderSummary.total) == "undefined") {
                    setTimeout(function () { _trackerScript(); }, 500);
                } else {
                    MyTracker.TrackOrder(PF.orderSummary.confirmation, PF.orderSummary.total);
                }
   })();
</script>


Change a text string on a page

...