This commit is contained in:
Daniel Seifert 2022-08-03 22:53:54 +02:00 committed by Daniel Seifert
parent ee0f0703cf
commit 5beb8d8782
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170
7 changed files with 388 additions and 86 deletions

View File

@ -28,7 +28,7 @@
"extra": { "extra": {
"oxideshop": { "oxideshop": {
"source-directory": "/src", "source-directory": "/src",
"target-directory": "d3/extsearch" "target-directory": "d3/linkmobility4ordermanager"
} }
}, },
"require": { "require": {

View File

@ -0,0 +1,187 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\Linkmobility4Ordermanager\Application\Model;
use D3\Ordermanager\Application\Model\Actions\d3ordermanager_action_abstract;
use D3\Ordermanager\Application\Model\d3ordermanager_conf;
use Doctrine\DBAL\DBALException;
use OxidEsales\Eshop\Application\Model\Content;
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
class d3linkmobility_ordermanager_action extends d3ordermanager_action_abstract
{
public $sTplName = 'd3linkmobility_ordermanager_action.tpl';
CONST ACTIVE_SWITCH = 'blActionLinkmobility_status';
public $sTitleIdent = 'D3_LINKMOBILITY_ORDERMANAGER_ACTION';
CONST SOURCE_TEMPLATE = 'template';
CONST SOURCE_CMS = 'cms';
/**
* @return array
*/
public final function isAllowedInEditions(): array
{
return [
d3ordermanager_conf::SERIAL_BIT_FREE_EDITION,
d3ordermanager_conf::SERIAL_BIT_STANDARD_EDITION,
d3ordermanager_conf::SERIAL_BIT_PREMIUM_EDITION
];
}
/**
* @return string
*/
public function getUnvalidConfigurationMessageIdent() : string
{
if ($this->hasRequiredValuesNoSource(false)) {
return 'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ERR_NOVALIDSOURCE';
} elseif ($this->hasRequiredValuesTplSource(false)) {
return 'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ERR_NOVALIDTPL';
} else {
return 'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ERR_NOVALIDCMS';
}
}
/**
* @throws DBALException
* @throws DatabaseConnectionException
* @throws DatabaseErrorException
* @throws StandardException
* @throws d3ShopCompatibilityAdapterException
* @throws d3_cfg_mod_exception
*/
public function startAction()
{
if (false == $this->isExecutable()) {
return;
}
$this->throwUnvalidConfigurationException();
startProfile(__METHOD__);
/** @var Language $oLang */
$oLang = d3GetModCfgDIC()->get('d3ox.ordermanager.'.Language::class);
$this->getManager()->getRemarkHandler()->addNote(
sprintf(
$oLang->translateString('D3_ORDERMANAGER_JOBDESC_SENDLMMESSAGE', null, true),
$this->getRecipientDescription()
)
);
$this->startExecution();
stopProfile(__METHOD__);
}
/**
* @return bool
*/
public function getRecipientDescription(): string
{
$aEditedValues = $this->getManager()->getEditedValues();
$aMailDesc = [];
$aEditedValues ?
($aEditedValues['blSendMailToCustomer'] ? $aMailDesc[] = 'Customer' : '') :
($this->getManager()->getValue('blSendMailToCustomer') ? $aMailDesc[] = 'Customer' : '');
$aEditedValues ?
($aEditedValues['blSendMailToOwner'] ? $aMailDesc[] = 'Owner' : '') :
($this->getManager()->getValue('blSendMailToOwner') ? $aMailDesc[] = 'Owner' : '');
$aEditedValues ?
($aEditedValues['blSendMailToCustom'] ? $aMailDesc[] = 'Custom: ' . $aEditedValues['sSendMailToCustomAddress'] : '') :
($this->getManager()->getValue('blSendMailToCustom') ?
$aMailDesc[] = 'Custom: ' . $this->getManager()->getValue('sSendMailToCustomAddress') :
''
);
}
return implode(', ', $aMailDesc);
}
/**
* @param bool $blExpected
*
* @return bool
*/
protected function hasRequiredValuesTplSource(bool $blExpected): bool
{
$source = (string) $this->getManager()->getValue( 'sLinkMobilityMessageFromSource' );
if (trim($source) !== self::SOURCE_TEMPLATE) {
return false;
}
$template = (string) $this->getManager()->getValue( 'sLinkMobilityMessageFromTemplatename' );
$theme = (string) $this->getManager()->getValue( 'sLinkMobilityMessageFromTheme' );
if ($blExpected === true) {
return (bool) strlen( trim( $template ) ) === true &&
(bool) strlen( trim( $theme ) ) === true;
} else {
return (bool) strlen( trim( $template ) ) === false ||
(bool) strlen( trim( $theme ) ) === false;
}
}
/**
* @param bool $blExpected
*
* @return bool
*/
protected function hasRequiredValuesCmsSource(bool $blExpected): bool
{
$source = (string) $this->getManager()->getValue( 'sLinkMobilityMessageFromSource' );
if (trim($source) !== self::SOURCE_CMS) {
return false;
}
/** @var Content $content */
$content = oxNew(Content::class);
$contentname = (string) $this->getManager()->getValue( 'sLinkMobilityMessageFromContentname' );
if ($blExpected === true) {
return (bool) strlen( trim( $contentname ) ) === true &&
$content->exists(trim( $contentname )) === true;
} else {
return (bool) strlen( trim( $contentname ) ) === false ||
$content->exists(trim( $contentname )) === false;
}
}
/**
* @return bool
* @throws DBALException
* @throws DatabaseConnectionException
* @throws DatabaseErrorException
*/
public function canExecuteMethod(): bool
{
return $this->getManager()->getExecMode();
}
/**
* @return string
*/
public function getActiveSwitchParameter() : string
{
return self::ACTIVE_SWITCH;
}
}

View File

@ -0,0 +1,49 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
// @codeCoverageIgnoreStart
$sLangName = 'Deutsch';
$aLang = array(
'charset' => 'UTF-8',
'D3_LINKMOBILITY_ORDERMANAGER_ACTION' => 'Mobile Messages (über LINK Mobility) senden',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ToUseLMSettings' => 'Der Nachrichtenempfänger wird aus den Kundendaten an den Bestellungen ermittelt.',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ToUseLMSettings_DESC' => 'Welche Daten der Bestellung hierfür verwendet werden, setzen Sie in den Einstellungen des LINK Mobility Moduls unter "Erweiterungen -> Module -> Einstell.".',
'D3_ORDERMANAGER_ACTION_MAILSEND' => 'E-Mail senden',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROM1' => '',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMSUBJECT' => 'Betreff-Template',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMCMS_SUBJECT' => 'Der CMS-Titel ist gleichzeitig der Mail-Betreff.',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE' => 'aus Templatedatei',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE_SOURCE'=> 'Template-Datei',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_ADMIN' => 'aus <b>Admin</b>-Templateverzeichnis',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_FRONTEND' => 'aus <b>Frontent</b>-Templateverzeichnis',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_MODULE' => 'aus <b>Modul</b>-Verzeichnis',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_DESC' => 'Neben den Templates werden auch die Sprachbausteine je nach Einstellung immer aus dem Admin- bzw. Frontend-Bereich übersetzt. Übertragen Sie daher ggf. die Einträge manuell. Laden Sie ein Template aus einem Modulverzeichnis, werden generell die Frontend-Sprachbausteine verwendet.',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE_DESC' => 'Geben Sie den vollständigen Templatenamen (inkl. Ordner ab tpl-Ordner und Dateiendung) an',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMCMS' => 'aus Kundeninformation',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMCMS_SOURCE' => 'CMS-Eintrag',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ERR_NOVALIDSOURCE' => 'keine gültige Inhaltsquelle gesetzt',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ERR_NOVALIDTPL' => 'keine gültigen Templatedaten gesetzt',
'D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ERR_NOVALIDCMS' => 'kein gültiger CMS-Eintrag gesetzt',
'D3_ORDERMANAGER_JOBDESC_SENDLMMESSAGE' => 'sende LinkMobility Nachricht an %s',
);
// @codeCoverageIgnoreEnd

View File

@ -0,0 +1,67 @@
[{block name="ordermanager_admin_action_linkmobilitymessage"}]
<dl class="[{$blActionRestriction}]">
[{include file="d3ordermanager_activeswitch.tpl" oActionRequ=$oAction blActionRestriction=$blActionRestriction readonly=$readonly}]
<dd>
[{if $oView->isEditMode()}]
[{block name="ordermanager_admin_action_linkmobilitymessage_editor"}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROM1"}]<br>
<input type="radio" id="FromSourceTpl" name="value[sLinkMobilityMessageFromSource]" value="template" [{if $edit->getValue('sLinkMobilityMessageFromSource') == 'template'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]>
<label for="FromSourceTpl">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE"}]</label>
<br>
<label style="margin-left: 15px;" for="FromTplFile">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE_SOURCE"}]</label><input id="FromTplFile" type="text" name="value[sLinkMobilityMessageFromTemplatename]" size="50" maxlength="250" value="[{$edit->getValue('sLinkMobilityMessageFromTemplatename')}]" [{$blActionRestriction}] [{$readonly}]> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE_DESC"}]<br>
<input style="margin-left: 20px;" id="FromThemeAdmin" type="radio" name="value[sLinkMobilityMessageFromTheme]" value="admin" [{if $edit->getValue('sLinkMobilityMessageFromTheme') == 'admin'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> <label for="FromThemeAdmin">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_ADMIN"}] ([{$oView->getManagerTemplateDirs(1)}])</label><br>
<input style="margin-left: 20px;" id="FromThemeFrontend" type="radio" name="value[sLinkMobilityMessageFromTheme]" value="frontend" [{if $edit->getValue('sLinkMobilityMessageFromTheme') == 'frontend'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> <label for="FromThemeFrontend">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_FRONTEND"}] ([{$oView->getManagerTemplateDirs(0)}])</label><br>
<input style="margin-left: 20px;" id="FromModule" type="radio" name="value[sLinkMobilityMessageFromTheme]" value="module" [{if $edit->getValue('sLinkMobilityMessageFromTheme') == 'module'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]>
<label for="FromModule">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_MODULE"}]</label>
<label for="FromModuleId" style="position: absolute; left: -2000px">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND"}]</label>
<select id="FromModuleId" class="editinput" name="value[sLinkMobilityMessageFromModulePath]" size="1" [{$blActionRestriction}] [{$readonly}]>
[{foreach from=$oView->getModulePathList() key="sId" item="sModulePath"}]
<option value="[{$sId}]" [{if $edit->getValue('sLinkMobilityMessageFromModulePath') == $sId}]selected[{/if}]>[{$sModulePath}]</option>
[{/foreach}]
</select> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_DESC"}]<br>
<hr>
<input type="radio" id="FromSourceCms" name="value[sLinkMobilityMessageFromSource]" value="cms" [{if $edit->getValue('sLinkMobilityMessageFromSource') == 'cms'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> <label for="FromSourceCms">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMCMS"}]</label>
<br>
<label for="FromCmsHtml" style="margin-left: 15px;">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMCMS_SOURCE"}]</label>
<SELECT id="FromCmsHtml" class="editinput" name="value[sLinkMobilityMessageFromContentname]" size="1" [{$blActionRestriction}] [{$readonly}]>
[{foreach from=$oView->getContentList() item="oContent"}]
<option value="[{$oContent->getId()}]" [{if $edit->getValue('sLinkMobilityMessageFromContentname') == $oContent->getId()}]selected[{/if}]>[{$oContent->getFieldData('oxtitle')}] ([{$oContent->getFieldData('oxloadid')}])</option>
[{/foreach}]
</SELECT> <br>
<hr>
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ToUseLMSettings"}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ToUseLMSettings_DESC"}]<br>
[{/block}]
[{else}]
[{block name="ordermanager_admin_action_sendmail_viewer"}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROM1"}]<br>
[{if $edit->getValue('sLinkMobilityMessageFromSource') == 'template'}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE"}]
<br>
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE_SOURCE"}] [{$edit->getValue('sLinkMobilityMessageFromTemplatename')}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTEMPLATE_DESC"}]<br>
[{if $edit->getValue('sLinkMobilityMessageFromTheme') == 'admin'}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_ADMIN"}] ([{$oView->getManagerTemplateDirs(1)}])
[{elseif $edit->getValue('sLinkMobilityMessageFromTheme') == 'frontend'}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_FRONTEND"}] ([{$oView->getManagerTemplateDirs(0)}])
[{elseif $edit->getValue('sLinkMobilityMessageFromTheme') == 'module'}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_MODULE"}] [{$edit->getValue('sLinkMobilityMessageFromModulePath')}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMTPL_DESC"}]
[{/if}]
[{elseif $edit->getValue('sLinkMobilityMessageFromSource') == 'cms'}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMCMS"}]
<br>
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_FROMCMS_SOURCE"}]
[{foreach from=$oView->getContentList() item="oContent"}]
[{if $edit->getValue('sLinkMobilityMessageFromContentname') == $oContent->getId()}]
[{$oContent->getFieldData('oxtitle')}] ([{$oContent->getFieldData('oxloadid')}])
[{/if}]
[{/foreach}]
[{/if}]
<hr>
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ToUseLMSettings"}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_ToUseLMSettings_DESC"}]<br>
[{/block}]
[{/if}]
[{oxinputhelp ident="D3_ORDERMANAGER_ACTION_LINKMOBILITYMESSAGE_DESC"}]
</dd>
<div class="spacer"></div>
</dl>
[{/block}]

View File

@ -0,0 +1,21 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\Linkmobility4Ordermanager\Modules\Ordermanager\Application\Model
{
use D3\Ordermanager\Application\Model\d3ordermanager_conf;
class d3ordermanager_conf_linkmobility_parent extends d3ordermanager_conf {}
}

View File

@ -0,0 +1,56 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\Linkmobility4Ordermanager\Modules\Ordermanager\Application\Model;
use D3\Linkmobility4Ordermanager\Application\Model\d3linkmobility_ordermanager_action;
use OxidEsales\Eshop\Core\Registry;
use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory;
use OxidEsales\EshopCommunity\Internal\Framework\Module\State\ModuleStateServiceInterface;
class d3ordermanager_conf_linkmobility extends d3ordermanager_conf_linkmobility_parent
{
/**
* @param array $actionIdList
*
* @return array
*/
public function addModuleDependendActions(array $actionIdList): array
{
$actionIdList = parent::addModuleDependendActions($actionIdList);
if ($this->hasLinkMobilityPlugin()) {
$actionIdList = $this->addModuleDependendItem(
$actionIdList,
'D3_ORDERMANAGER_ACTION_INFO',
'linkmobility',
d3linkmobility_ordermanager_action::class
);
}
return $actionIdList;
}
/**
* @return bool
*/
protected function hasLinkMobilityPlugin(): bool
{
$container = ContainerFactory::getInstance()->getContainer();
$moduleStateService = $container->get(ModuleStateServiceInterface::class);
return $moduleStateService->isActive('d3linkmobility', Registry::getConfig()->getShopId());
}
}

View File

@ -13,12 +13,8 @@
declare(strict_types=1); declare(strict_types=1);
use D3\Linkmobility4OXID\Application\Controller\Admin\AdminOrder; use D3\Linkmobility4Ordermanager\Modules\Ordermanager\Application\Model\d3ordermanager_conf_linkmobility;
use D3\Linkmobility4OXID\Application\Controller\Admin\AdminUser; use D3\Ordermanager\Application\Model\d3ordermanager_conf;
use D3\Linkmobility4OXID\Modules\Application\Model\OrderModel;
use D3\Linkmobility4OXID\Modules\Core\EmailCore;
use OxidEsales\Eshop\Application\Model\Order;
use OxidEsales\Eshop\Core\Email;
$sMetadataVersion = '2.1'; $sMetadataVersion = '2.1';
$sModuleId = 'd3linkmobility4ordermanager'; $sModuleId = 'd3linkmobility4ordermanager';
@ -40,87 +36,13 @@ $aModule = [
'email' => 'support@shopmodule.com', 'email' => 'support@shopmodule.com',
'url' => 'https://www.oxidmodule.com/', 'url' => 'https://www.oxidmodule.com/',
'extend' => [ 'extend' => [
Email::class => EmailCore::class, d3ordermanager_conf::class => d3ordermanager_conf_linkmobility::class
Order::class => OrderModel::class
],
'controllers' => [
'd3linkmobility_user' => AdminUser::class,
'd3linkmobility_order' => AdminOrder::class
], ],
'controllers' => [],
'templates' => [ 'templates' => [
'd3adminuser.tpl' => 'd3/linkmobility/Application/views/admin/tpl/adminuser.tpl', 'd3linkmobility_ordermanager_action.tpl' => 'd3/linkmobility4ordermanager/Application/views/admin/tpl/d3linkmobility_ordermanager_action.tpl'
'd3adminorder.tpl' => 'd3/linkmobility/Application/views/admin/tpl/adminuser.tpl',
'd3sms_ordercust.tpl' => 'd3/linkmobility/Application/views/tpl/SMS/order_cust.tpl',
'd3sms_sendednow.tpl' => 'd3/linkmobility/Application/views/tpl/SMS/sendednow.tpl',
'd3sms_ordercanceled.tpl' => 'd3/linkmobility/Application/views/tpl/SMS/ordercanceled.tpl',
], ],
'events' => [], 'events' => [],
'blocks' => [ 'blocks' => [],
[ 'settings' => []
'template' => 'order_remark.tpl',
'block' => 'admin_order_remark_type',
'file' => 'Application/views/blocks/admin/admin_user_remark_type.tpl',
],
[
'template' => 'user_remark.tpl',
'block' => 'admin_user_remark_type',
'file' => 'Application/views/blocks/admin/admin_user_remark_type.tpl',
]
],
'settings' => [
[
'group' => $sModuleId.'_general',
'name' => $sModuleId.'_debug',
'type' => 'bool',
'value' => false
],
[
'group' => $sModuleId.'_general',
'name' => $sModuleId.'_apitoken',
'type' => 'str',
'value' => false
],
[
'group' => $sModuleId.'_sms',
'name' => $sModuleId.'_smsSenderNumber',
'type' => 'str',
'value' => false
],
[
'group' => $sModuleId.'_sms',
'name' => $sModuleId.'_smsSenderCountry',
'type' => 'str',
'value' => 'DE'
],
[
'group' => $sModuleId.'_sms',
'name' => $sModuleId.'_smsUserRecipientsFields',
'type' => 'arr',
'value' => [],
],
[
'group' => $sModuleId.'_sms',
'name' => $sModuleId.'_smsOrderRecipientsFields',
'type' => 'aarr',
'value' => [],
],
[
'group' => $sModuleId.'_trigger',
'name' => $sModuleId.'_orderActive',
'type' => 'bool',
'value' => false
],
[
'group' => $sModuleId.'_trigger',
'name' => $sModuleId.'_sendedNowActive',
'type' => 'bool',
'value' => false
],
[
'group' => $sModuleId.'_trigger',
'name' => $sModuleId.'_cancelOrderActive',
'type' => 'bool',
'value' => false
]
]
]; ];