WSS AAA Custom Elements for Vendor Header and Footer

Header and Footer script


<!-- WSS version 2019.10.21 -->
<script type='text/javascript'>
  (function () {
    if (!window.headerFooterIsLoaded) {
      var a = document.getElementsByTagName('script')[0];
      var b = document.createElement('script');b.type = 'text/javascript';
      b.src = 'https://aaa-vendor-header-footer.millisite.com/init/index.js';
      a.parentNode.insertBefore(b, a);
      window.headerFooterIsLoaded = true;
    }
  })();
</script>
  

Header html snippet


<!-- WSS version 2019.10.21 -->
<wss-aaa-northway-header></wss-aaa-northway-header>
  

Footer html snippet (this also loads the club's gtm script into the page)


<!-- WSS version 2019.10.21 -->
<wss-aaa-northway-footer></wss-aaa-northway-footer>
  

Verification and Testing

Set Zip Code Cookie to 12866
Club code: 104

Done

National
Stager [SEO Header] and [SEO Bottom]
National
Stager [Custom Menu 10] and [Custom Menu 16]
Revelex Cruise
Stager [Custom Menu 10] and [no footer] --> we pre-rendered the HTML

TODO

Discounts
Vendor Managed