2018-01-25 11:27:47 +01:00
< ? php
2018-02-23 11:06:24 +01:00
2020-11-12 08:50:36 +01:00
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware .
*
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law .
*
* http :// www . shopmodule . com
*
* @ copyright <EFBFBD> D<EFBFBD> Data Development , Thomas Dartsch
* @ author D<EFBFBD> Data Development - Daniel Seifert < info @ shopmodule . com >
* @ link http :// www . oxidmodule . com
*/
2020-11-11 22:29:10 +01:00
use D3\Devhelper\Application\Controller\d3dev ;
2018-02-23 11:06:24 +01:00
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 ;
2018-01-25 11:27:47 +01:00
use OxidEsales\Eshop\Core\Registry ;
/**
* Metadata version
*/
2020-11-11 23:59:40 +01:00
$sMetadataVersion = '2.1' ;
2020-11-11 22:29:10 +01:00
$sLogo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em"> ' ;
2018-01-25 11:27:47 +01:00
2021-04-28 16:14:29 +02:00
$shopUrl = function_exists ( 'oxNew' ) ? Registry :: getConfig () -> getCurrentShopUrl ( false ) : '../' ;
2018-01-25 11:27:47 +01:00
/**
* Module information
*/
$aModule = array (
'id' => 'd3dev' ,
2020-11-11 22:29:10 +01:00
'title' => [
'de' => $sLogo . 'TPL Entwicklerwerkzeug' ,
'en' => $sLogo . 'TPL Development Tool'
],
'description' => [
2018-01-25 11:27:47 +01:00
'de' => ' < script type = " text/javascript " ><!--
function showNote () {
2020-11-11 22:29:10 +01:00
let _oElem = document . getElementById ( " secnote " );
2018-02-23 12:30:57 +01:00
if ( _oElem . style . display === " block " ) {
2018-01-25 11:27:47 +01:00
_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 & uuml ; gung , die im Livebetrieb sicherheitskritisch sein k & ouml ; nnen . Es k & ouml ; nnen Kunden - und Bestelldaten ausgelesen und auch Shopfunktionen manipuliert werden . Aktivieren Sie diese Erweiterung daher nur in einem Umfeld , in dem Sie Missbrauch ausschlie & szligen k & ouml ; nnen . F & uuml ; r entstandene Sch & auml ; den lehnen wir jede Haftung ab .</ p >
< ul >< li > unterbindet L & ouml ; schen des Warenkorbs nach Bestellabschluss </ li > ' .
2021-04-28 16:14:29 +02:00
'<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>' .
2018-01-25 11:27:47 +01:00
'<li>Mail-Templates können im Browser ausgegeben werden' .
'<ul>' .
2021-04-28 16:14:29 +02:00
'<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>' .
2018-01-25 11:27:47 +01:00
'</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' ,
2020-11-11 22:29:10 +01:00
'en' => '' ],
2021-04-28 22:43:55 +02:00
'version' => '3.0.0.1' ,
2018-01-25 11:27:47 +01:00
'author' => 'D³ Data Development (Inh.: Thomas Dartsch)' ,
'email' => 'support@shopmodule.com' ,
'url' => 'http://www.oxidmodule.com/' ,
2020-11-11 22:29:10 +01:00
'extend' => [
2018-02-23 11:06:24 +01:00
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 ,
2020-11-11 22:29:10 +01:00
],
'controllers' => [
'd3dev' => d3dev :: class ,
],
'templates' => [],
'events' => [],
'blocks' => [],
'settings' => [
[
2018-01-25 11:27:47 +01:00
'group' => 'd3dev_order' ,
2020-11-11 22:29:10 +01:00
'name' => ModuleCore\d3_dev_conf :: OPTION_PREVENTDELBASKET ,
2018-01-25 11:27:47 +01:00
'type' => 'bool' ,
'value' => 'false'
2020-11-11 22:29:10 +01:00
],
[
2018-01-25 11:27:47 +01:00
'group' => 'd3dev_order' ,
2020-11-11 22:29:10 +01:00
'name' => ModuleCore\d3_dev_conf :: OPTION_SHOWTHANKYOU ,
2018-01-25 11:27:47 +01:00
'type' => 'bool' ,
'value' => 'false'
2020-11-11 22:29:10 +01:00
],
[
2018-01-25 11:27:47 +01:00
'group' => 'd3dev_mail' ,
2020-11-11 22:29:10 +01:00
'name' => ModuleCore\d3_dev_conf :: OPTION_SHOWMAILSINBROWSER ,
2018-01-25 11:27:47 +01:00
'type' => 'bool' ,
'value' => 'false'
2020-11-11 22:29:10 +01:00
],
[
2018-01-25 11:27:47 +01:00
'group' => 'd3dev_mailblock' ,
2020-11-11 22:29:10 +01:00
'name' => ModuleCore\d3_dev_conf :: OPTION_BLOCKMAIL ,
2018-01-25 11:27:47 +01:00
'type' => 'bool' ,
'value' => 'false'
2020-11-11 22:29:10 +01:00
],
[
2018-01-25 11:27:47 +01:00
'group' => 'd3dev_mailblock' ,
2020-11-11 22:29:10 +01:00
'name' => ModuleCore\d3_dev_conf :: OPTION_REDIRECTMAIL ,
2018-01-25 11:27:47 +01:00
'type' => 'str' ,
'value' => 'd3test1@shopmodule.com'
2020-11-11 22:29:10 +01:00
],
],
2018-01-25 11:27:47 +01:00
);