File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/code/Meta/BusinessExtension/Block/Adminhtml Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,9 @@ public function fetchPixelId($storeId)
194
194
*/
195
195
public function isCommerceExtensionEnabled ()
196
196
{
197
- return $ this ->systemConfig ->isCommerceExtensionEnabled ();
197
+ $ storeID = $ this ->getSelectedStoreId ();
198
+ $ storeHasCommercePartnerIntegration = !!$ this ->systemConfig ->getCommercePartnerIntegrationId ($ storeID );
199
+ return $ storeHasCommercePartnerIntegration || $ this ->systemConfig ->isCommerceExtensionEnabled ();
198
200
}
199
201
200
202
/**
@@ -227,13 +229,14 @@ public function getPopupOrigin()
227
229
*
228
230
* @return string
229
231
*/
230
- public function getSplashPageURL () {
232
+ public function getSplashPageURL ()
233
+ {
231
234
if (!$ this ->systemConfig ->isCommerceExtensionSplashEnabled ()) {
232
235
return 'https://business.facebook.com/fbe-iframe-get-started/? ' ;
233
236
}
234
237
235
238
$ base_url = $ this ->systemConfig ->getCommerceExtensionBaseURL ();
236
- return $ base_url. 'commerce_extension/splash/? ' ;
239
+ return $ base_url . 'commerce_extension/splash/? ' ;
237
240
}
238
241
239
242
/**
You can’t perform that action at this time.
0 commit comments