- DUPLICATE (AND MOVE) CHECKOUT FIELDS
- Include this snippet on the page(s) where you want to duplicate field(s):
<script type="text/javascript" src="https://live..monitus.net/scripts/mdupcofields.js"></script> <script type="text/javascript">
function monitus_duplicate_checkout_field(pNewNextSiblingID, pTargetID, pActiveLinkID, pFocus, pHideOriginal) {
if((typeof(MONITUSD_LOADED) == "undefined") || !MONITUSD_LOADED) setTimeout("monitus_duplicate_checkout_field('" + pNewNextSiblingID + "', '" + pTargetID + "', '" + pActiveLinkID + "', " + (pFocus ? "true" : "false") + ", " + (pHideOriginal ? "true" : "false") + ");", 10); else MONITUSD.duplicate_checkout_field(pNewNextSiblingID, pTargetID, pActiveLinkID, pFocus, pHideOriginal);
}
monitus_duplicate_checkout_field("id of the new sibling item", "labelbilling-email", "billing-email", focus on the new field on page load? (true or false), hide the original field? (true or false)); </script>To create a brand new section, use something like:
<script type="text/javascript" src="https://live..monitus.net/scripts/mdupcofields.js"></script> <script type="text/javascript"> function monitus_rebuild_email() { if((typeof MONITUSD_LOADED == "undefined") || !MONITUSD_LOADED) setTimeout("monitus_rebuild_email();", 10); else { MONITUSD.create_new_section("ys_shipBillShippingInfo", "mon_email", "Your contact email address"); MONITUSD.duplicate_checkout_field("mon_email_placeholder","labelbilling-email", "billing-email", true, true); MONITUSD.duplicate_checkout_field("mon_email_placeholder","labelconfirm-email", "confirm-email", false, true); }} monitus_rebuild_email(); </script>
- PREVENT GWO COOKIE NUKING
- As high-up on the page as possible, ideally in the <head> tag (before or after the GWO code – doesn’t matter), place:
<script type="text/javascript">var _MONITUS_ignore_WO = true;</script>
- CUSTOMIZATION HOOK INTO YWA TRACKING OBJECT
- Anywhere on the page(s), place:
<script type="text/javascript" src="http://d.yimg.com/mi/ywa.js"></script> <script type="text/javascript"> function YWAT_Customization_Hook(pTracker) { // do whatever you want with pTracker here } try { YWA.getTracker("10001295996995"); // **** You need your tracker ID here! var vFc = YWAT.prototype.submit; YWAT.prototype.submit = function() { if(typeof(YWAT_Customization_Hook) == 'function') YWAT_Customization_Hook(this); this._submit(); }; YWAT.prototype._submit = vFc; } catch(e) { } </script>