POC Sports/eyefitu-custom.liquid

    0

    0

    Dmitry Gurendo

    This code sets the flow and default gender of the eyefitu shopify options to "poc" and "male", respectively.

    <script>
      window.eyefituShopifyOptions.dataAttributes.flow = "poc"
      window.eyefituShopifyOptions.dataAttributes.defaultGender = "male"
    </script>
    
    <script>
      document.addEventListener('eyefitu', (event) => {
        const { recommendedSize } = event.detail;
        const seizes = Array.from(document.querySelectorAll('.select-items.row.place div'))
        const el = seizes.find(i => i.innerText === recommendedSize)
      
        el.click();
      });
    </script>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.