File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
app/code/Meta/BusinessExtension/Model Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ public function save($response, $storeId)
152
152
$ this ->saveCommercePartnerIntegrationId ($ commercePartnerIntegrationId , $ storeId );
153
153
$ this ->saveMerchantSettingsId ($ data ['commerce_merchant_settings_id ' ] ?? '' , $ storeId );
154
154
$ this ->saveInstalledFeatures ($ data ['installed_features ' ] ?? '' , $ storeId );
155
+ $ this ->setInstalledFlag ($ storeId );
155
156
$ this ->systemConfig ->cleanCache ();
156
157
return true ;
157
158
}
@@ -309,6 +310,21 @@ private function saveInstalledFeatures($data, $storeId)
309
310
$ this ->fbeHelper ->log ("Saved fbe_installs 'installed_features' for storeId: {$ storeId }" );
310
311
}
311
312
313
+ /**
314
+ * Update install flag to true and save
315
+ *
316
+ * @param int $storeId
317
+ */
318
+ public function setInstalledFlag ($ storeId )
319
+ {
320
+ // set installed to true
321
+ $ this ->systemConfig ->saveConfig (
322
+ SystemConfig::XML_PATH_FACEBOOK_BUSINESS_EXTENSION_INSTALLED ,
323
+ true ,
324
+ $ storeId ,
325
+ );
326
+ }
327
+
312
328
/**
313
329
* Update MBE settings through the 'fbe_installs' API
314
330
*
You can’t perform that action at this time.
0 commit comments