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-minneapolis-header></wss-aaa-minneapolis-header>
  

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


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

Verification and Testing

Set Zip Code Cookie to 55444
Club code: 057

Done

Discounts
Stager [SEO Header] and [SEO Bottom]
National
Stager [SEO Header] and [SEO Bottom]
National
Stager [Custom Menu 01] and [Custom Menu 20]
Revelex Cruise
Stager [T2 Cruise Booking Top] and [T2 Cruise Booking Bottom] --> we pre-rendered the HTML
RTJ Membership
Ghost CMS with wss-managed theme
TST Travel
Vendor Managed --> we pre-rendered the HTML for /flight/flights pages
Fuze FAQ's
Vendor Managed

TODO