• David Nascimento

    (@davenascimento)


    The size guide’s JSON object comes with extra double quotes (at least in Portuguese), generating an error in the onSizeGuideClick function of the product-size-guide.js file of the plugin. This prevents showing the size guide modal.

    For future reference and improvement, a simple replace on the onSizeGuideClick function solves the issue for me:

    let cleanSGDdata = window.pfGlobal.sg_data_raw.replace(/(\d)"([^\d])/g, '$1\"$2');
    this.sizeGuideData = JSON.parse(cleanSGDdata);
  • The topic ‘Size guide – extra double quotes in JSON’ is closed to new replies.