3.0.x-and-above/upload/catalog/model/extension/module/facebook_business.php [148:170]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function updateUseS2SUsePIIByAAMSetting() {
        $pixel_id = $this->config->get('facebook_pixel_id');
    
        if (empty($pixel_id)) {
            return;
        }

        // Fetch again after 20 minutes
        if (time() - $this->config->get('facebook_last_aam_check_time') < 60 * 20) {
            return;
        }
    
        $pixel_aam_settings = $this->getPixelAAMSettings($pixel_id);
        $pixel_enabled_aam_fields = $this->getPixelEnabledAAMFields($pixel_id);

        $data = array(
            'facebook_pixel_use_pii'            => $pixel_aam_settings,
            'facebook_pixel_enabled_aam_fields' => $pixel_enabled_aam_fields,
            'facebook_last_aam_check_time'      => time()
        );

        $this->updateFacebookSettings($data);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



2.0.x-2.2.x/upload/catalog/model/module/facebook_business.php [148:170]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function updateUseS2SUsePIIByAAMSetting() {
        $pixel_id = $this->config->get('facebook_pixel_id');
    
        if (empty($pixel_id)) {
            return;
        }

        // Fetch again after 20 minutes
        if (time() - $this->config->get('facebook_last_aam_check_time') < 60 * 20) {
            return;
        }
    
        $pixel_aam_settings = $this->getPixelAAMSettings($pixel_id);
        $pixel_enabled_aam_fields = $this->getPixelEnabledAAMFields($pixel_id);

        $data = array(
            'facebook_pixel_use_pii'            => $pixel_aam_settings,
            'facebook_pixel_enabled_aam_fields' => $pixel_enabled_aam_fields,
            'facebook_last_aam_check_time'      => time()
        );

        $this->updateFacebookSettings($data);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



2.3.x-and-above/upload/catalog/model/extension/module/facebook_business.php [148:170]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function updateUseS2SUsePIIByAAMSetting() {
        $pixel_id = $this->config->get('facebook_pixel_id');
    
        if (empty($pixel_id)) {
            return;
        }

        // Fetch again after 20 minutes
        if (time() - $this->config->get('facebook_last_aam_check_time') < 60 * 20) {
            return;
        }
    
        $pixel_aam_settings = $this->getPixelAAMSettings($pixel_id);
        $pixel_enabled_aam_fields = $this->getPixelEnabledAAMFields($pixel_id);

        $data = array(
            'facebook_pixel_use_pii'            => $pixel_aam_settings,
            'facebook_pixel_enabled_aam_fields' => $pixel_enabled_aam_fields,
            'facebook_last_aam_check_time'      => time()
        );

        $this->updateFacebookSettings($data);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



