120 lines
5.9 KiB
PHP
120 lines
5.9 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
|
|
*
|
|
* 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 <info@shopmodule.com>
|
|
* @link https://www.oxidmodule.com
|
|
*/
|
|
|
|
use D3\Devhelper\Application\Controller\d3dev;
|
|
use D3\Devhelper\Modules\Core as ModuleCore;
|
|
use D3\Devhelper\Modules\Application\Controller as ModuleController;
|
|
use D3\Devhelper\Modules\Application\Model as ModuleModel;
|
|
use OxidEsales\Eshop\Application\Controller as OxidController;
|
|
use OxidEsales\Eshop\Application\Model as OxidModel;
|
|
use OxidEsales\Eshop\Core as OxidCore;
|
|
use OxidEsales\Eshop\Core\Registry;
|
|
|
|
/**
|
|
* Metadata version
|
|
*/
|
|
$sMetadataVersion = '2.1';
|
|
$sLogo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em"> ';
|
|
|
|
$shopUrl = function_exists('oxNew') ? Registry::getConfig()->getCurrentShopUrl(false) : '../';
|
|
|
|
|
|
/**
|
|
* Module information
|
|
*/
|
|
$aModule = [
|
|
'id' => 'd3dev',
|
|
'title' => [
|
|
'de' => $sLogo . 'TPL Entwicklerwerkzeug',
|
|
'en' => $sLogo . 'TPL Development Tool',
|
|
],
|
|
'description' => [
|
|
'de' => '<script type="text/javascript"><!--
|
|
function showNote() {
|
|
let _oElem = document.getElementById("secnote");
|
|
if (_oElem.style.display === "block") {
|
|
_oElem.style.display = "none";
|
|
} else {
|
|
_oElem.style.display = "block";
|
|
}
|
|
}
|
|
--></script>
|
|
<p style="background-color: darkred; padding: 5px;"><a href="#" style="text-decoration: underline; color: white;" onclick="showNote(); return false;"><b>Sicherheitshinweis</b></a></p>
|
|
<p style="display: none; background-color: darkred; color: white; padding: 5px;" id="secnote">Diese Shoperweiterung stellt Entwicklungshilfen zur Verfügung, die im Livebetrieb sicherheitskritisch sein können. Es können Kunden- und Bestelldaten ausgelesen und auch Shopfunktionen manipuliert werden. Aktivieren Sie diese Erweiterung daher nur in einem Umfeld, in dem Sie Missbrauch ausschließen können. Für entstandene Schäden lehnen wir jede Haftung ab.</p>
|
|
<ul><li>unterbindet Löschen des Warenkorbs nach Bestellabschluss</li>'.
|
|
'<li><a style="text-decoration: underline;" href="'.$shopUrl.'index.php?cl=thankyou&d3dev=1&d3ordernr=" target="_new">Thankyou-Seite ist ohne Bestellung aufrufbar*</a></li>'.
|
|
'<li>Mail-Templates können im Browser ausgegeben werden'.
|
|
'<ul>'.
|
|
'<li><a style="text-decoration: underline;" href="'.$shopUrl.'index.php?cl=d3dev&fnc=showOrderMailContent&type=owner_html&d3ordernr=" target="_new">Order Owner HTML*</a></li>'.
|
|
'<li><a style="text-decoration: underline;" href="'.$shopUrl.'index.php?cl=d3dev&fnc=showOrderMailContent&type=owner_plain&d3ordernr=" target="_new">Order Owner Plain*</a></li>'.
|
|
'<li><a style="text-decoration: underline;" href="'.$shopUrl.'index.php?cl=d3dev&fnc=showOrderMailContent&type=user_html&d3ordernr=" target="_new">Order User HTML*</a></li>'.
|
|
'<li><a style="text-decoration: underline;" href="'.$shopUrl.'index.php?cl=d3dev&fnc=showOrderMailContent&type=user_plain&d3ordernr=" target="_new">Order User Plain*</a></li>'.
|
|
'</li>'.
|
|
'<li>blockiert übers Framework versendete Mails oder leitet diese um</li>'.
|
|
'</ul><br>Jede dieser Optionen muss aus Sicherheitsgründen unter "Einstell." aktiviert werden. Weiterhin darf der Shop nicht im Produktivmodus betrieben werden.<br><br>'.
|
|
'* Ordernummer an URL ergänzen, wenn bestimmte Bestellungen angezeigt werden sollen',
|
|
'en' => ''],
|
|
'version' => '4.0.0.0',
|
|
'author' => 'D³ Data Development (Inh.: Thomas Dartsch)',
|
|
'email' => 'support@shopmodule.com',
|
|
'url' => 'http://www.oxidmodule.com/',
|
|
'extend' => [
|
|
OxidController\ThankYouController::class => ModuleController\d3_dev_thankyou::class,
|
|
OxidModel\Order::class => ModuleModel\d3_dev_oxorder::class,
|
|
OxidModel\OrderArticle::class => ModuleModel\d3_dev_oxorderarticle::class,
|
|
OxidCore\Email::class => ModuleCore\d3_dev_oxemail::class,
|
|
OxidModel\Basket::class => ModuleModel\d3_dev_oxbasket::class,
|
|
OxidModel\BasketItem::class => ModuleModel\d3_dev_oxbasketitem::class,
|
|
],
|
|
'controllers' => [
|
|
'd3dev' => d3dev::class,
|
|
],
|
|
'templates' => [],
|
|
'events' => [],
|
|
'blocks' => [],
|
|
'settings' => [
|
|
[
|
|
'group' => 'd3dev_order',
|
|
'name' => ModuleCore\d3_dev_conf::OPTION_PREVENTDELBASKET,
|
|
'type' => 'bool',
|
|
'value' => 'false',
|
|
],
|
|
[
|
|
'group' => 'd3dev_order',
|
|
'name' => ModuleCore\d3_dev_conf::OPTION_SHOWTHANKYOU,
|
|
'type' => 'bool',
|
|
'value' => 'false',
|
|
],
|
|
[
|
|
'group' => 'd3dev_mail',
|
|
'name' => ModuleCore\d3_dev_conf::OPTION_SHOWMAILSINBROWSER,
|
|
'type' => 'bool',
|
|
'value' => 'false',
|
|
],
|
|
[
|
|
'group' => 'd3dev_mailblock',
|
|
'name' => ModuleCore\d3_dev_conf::OPTION_BLOCKMAIL,
|
|
'type' => 'bool',
|
|
'value' => 'false',
|
|
],
|
|
[
|
|
'group' => 'd3dev_mailblock',
|
|
'name' => ModuleCore\d3_dev_conf::OPTION_REDIRECTMAIL,
|
|
'type' => 'str',
|
|
'value' => 'd3test1@shopmodule.com',
|
|
],
|
|
],
|
|
];
|