Skip to content

Commit 909bb9b

Browse files
authored
Display EBID in config page (#687)
1 parent 6f427ae commit 909bb9b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/code/Meta/BusinessExtension/Block/Adminhtml/System/Config/ModuleInfo.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,14 @@ public function getCommercePartnerIntegrationId()
202202
{
203203
return $this->systemConfig->getCommercePartnerIntegrationId($this->getStoreId());
204204
}
205+
206+
/**
207+
* Retrieve the Commerce Partner External Business ID
208+
*
209+
* @return string
210+
*/
211+
public function getExternalBusinessID()
212+
{
213+
return $this->systemConfig->getExternalBusinessId($this->getStoreId());
214+
}
205215
}

app/code/Meta/BusinessExtension/view/adminhtml/templates/system/config/module_info.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<p><b>DEBUG MODE</b></p>
1111
<?php endif; ?>
1212
<?php if ($block->getIsFBEInstalled()): ?>
13+
<p>External Business ID: <?= $escaper->escapeHtml($block->getExternalBusinessID()) ?></p>
1314
<p>Commerce Account ID: <?= $escaper->escapeHtml($block->getCommerceAccountId()) ?></p>
1415
<p>Commerce Partner Integration ID: <?= $escaper->escapeHtml($block->getCommercePartnerIntegrationId()) ?></p>
1516
<p>Page ID: <?= $escaper->escapeHtml($block->getPageId()) ?></p>

0 commit comments

Comments
 (0)