Initial commit

This commit is contained in:
2025-04-12 10:34:26 -04:00
parent 06ffcc1400
commit f094a1f705
11 changed files with 315 additions and 0 deletions

26
Helper/ConfigHelper.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace SoundPress\WHIOrders\Helper;
use Magento\Framework\App\Config\ScopeConfigInterface;
use \Magento\Framework\App\Helper\AbstractHelper;
class ConfigHelper extends AbstractHelper
{
protected $scopeConfig;
public function __construct(ScopeConfigInterface $scopeConfig)
{
$this->scopeConfig = $scopeConfig;
}
public function getApiToken()
{
return $this->scopeConfig->getValue('whiorders/api/api_token', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
}
public function getBaseUrl()
{
return $this->scopeConfig->getValue('whiorders/api/base_url', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
}
}