summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorthomas <noreply@maennchen1.de>2016-05-24 14:09:58 +0000
committerthomas <noreply@maennchen1.de>2016-05-24 14:09:58 +0000
commit6df566a9d50af64b0b9f3bfde4ef81a5d3ab823b (patch)
tree21d8f68f79f9ea94375eecebcce8c990bdbf8b0e /views
parent8640f5b97d54584b3b9687d14a841f97334e469e (diff)
- Sofort Ident
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5517 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_si/cannotorder.phtml45
-rw-r--r--views/mods/mod_si/produkt_edit_allgemein.phtml27
-rw-r--r--views/mods/mod_si/settings_edit.phtml28
3 files changed, 100 insertions, 0 deletions
diff --git a/views/mods/mod_si/cannotorder.phtml b/views/mods/mod_si/cannotorder.phtml
new file mode 100644
index 0000000..a3ff5d5
--- /dev/null
+++ b/views/mods/mod_si/cannotorder.phtml
@@ -0,0 +1,45 @@
+<?php
+
+ /**
+ * Integration in die Bestellzusammenfassung
+ */
+
+ $bic = wpsg_getStr($this->view['basket']['checkout']['mod_autodebit_bic'], '');
+
+ $arParam = array(
+ 'user_id' => $this->get_option('wpsg_mod_si_user_id'), // Ihre Kundennummer bei SOFORT, z.B. "12345"
+ 'project_id' => $this->get_option('wpsg_mod_si_project_id'), // Ihre Projektnummer des SOFORT Ident Projekts, z.B. "54321"
+ 'firstname' => $this->view['basket']['checkout']['vname'], // Vorname des Kunden, z.B. "Max"
+ 'lastname' => $this->view['basket']['checkout']['name'], // Nachname des Kunden, z.B. "Mustermann"
+ 'street' => $this->view['basket']['checkout']['strasse'], // Straße und Hausnummer des Kunden, z.B. "Unter den Linden 77"
+ 'city' => $this->view['basket']['checkout']['ort'], // Wohnort des Kunden, z.B. "Berlin"
+ 'zipcode' => $this->view['basket']['checkout']['plz'], // PLZ des Kunden, z.B. "10117"
+ 'birthday' => date('Y-m-d', strtotime($this->view['basket']['checkout']['plz'])), // Geburtsdatum des Kunden im Format YYYY-MM-DD, z.B. "1978-09-24"
+ 'address_country_id' => $this->view['basket']['land']['kuerzel'], // 2-stellige Abkürzung des Landes des Kunden im ISO-3166-1 Format, z.B. "DE"
+ 'bank_code' => $bic, // BIC (DEPRECATED: oder Bankleitzahl) der Bankfiliale des Kunden
+ 'account_country_id' => $this->view['basket']['land']['kuerzel'], // 2-stellige Abkürzung des Landes der Bankfiliale des Kunden im ISO-3166-1 Format, z.B. "DE"
+ 'user_variable_0' => $this->view['temp_order_id'], // Kundenvariable (optional), z.B. "123456"
+ 'user_variable_1' => '', // Kundenvariable (optional)
+ 'user_variable_2' => '', // Kundenvariable (optional)
+ 'user_variable_3' => '', // Kundenvariable (optional)
+ 'user_variable_4' => '', // Kundenvariable (optional)
+ 'user_variable_5' => '' // Kundenvariable (optional)
+ );
+
+ $arParam['hash'] = $this->view['wpsg_mod_si']['modul']->getSendHash($arParam);
+
+?>
+
+</form>
+
+<form method="post" id="wpsg_mod_si_form" action="https://www.sofort.com/payment/agecheck">
+
+ <?php foreach ($arParam as $key => $value) { ?>
+ <input type="hidden" name="<?php echo $key; ?>" value="<?php echo $value; ?>" />
+ <?php } ?>
+
+ <input type="submit" value="<?php echo __('Altersverifizierung', 'wpsg'); ?>" />
+
+</form>
+
+<form method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>"> \ No newline at end of file
diff --git a/views/mods/mod_si/produkt_edit_allgemein.phtml b/views/mods/mod_si/produkt_edit_allgemein.phtml
new file mode 100644
index 0000000..d602179
--- /dev/null
+++ b/views/mods/mod_si/produkt_edit_allgemein.phtml
@@ -0,0 +1,27 @@
+<?php
+
+ /**
+ * Integration des Moduls SOFORT Ident in die allgemeinen Einstellungen eines Produktes
+ */
+
+?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_si[check]', __('SOFORT Ident Prüfung erforderlich', 'wpsg'), $this->view['wpsg_mod_si']['check'], array('id' => 'wpsg_mod_si_checkbox')); ?>
+
+<div id="wpsg_mod_si_age" style="display:none;">
+ <?php echo wpsg_drawForm_Input('wpsg_mod_si[minAge]', __('Mindestalter', 'wpsg'), $this->view['wpsg_mod_si']['minAge']); ?><br />
+</div>
+
+<script type="application/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_mod_si_checkbox').bind('change', function() {
+
+ if (jQuery(this).prop('checked') == true) jQuery('#wpsg_mod_si_age').show();
+ else jQuery('#wpsg_mod_si_age').hide();
+
+ } ).change();
+
+ } );
+
+/* ]]> */</script> \ No newline at end of file
diff --git a/views/mods/mod_si/settings_edit.phtml b/views/mods/mod_si/settings_edit.phtml
new file mode 100644
index 0000000..ff09287
--- /dev/null
+++ b/views/mods/mod_si/settings_edit.phtml
@@ -0,0 +1,28 @@
+<?php
+
+ /**
+ * Template für die Einstellungen des Moduls "SOFORT Ident"
+ */
+
+?>
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_si_user_id', __('Kundennummer bei SOFORT Ident', 'wspg'), $this->get_option('wpsg_mod_si_user_id'), array('help' => 'wpsg_mod_si_user_id')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_si_project_id', __('Projektnummer bei SOFORT Ident', 'wspg'), $this->get_option('wpsg_mod_si_project_id'), array('help' => 'wpsg_mod_si_project_id')); ?>
+
+<br />
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_si_project_pwd', __('Projektpasswort', 'wpsg'), $this->get_option('wpsg_mod_si_project_pwd'), array('help' => 'wpsg_mod_si_project_pwd')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_si_hashalgo', __('HASH Algorithmus', 'wpsg'), array(
+ wpsg_mod_si::HASH_MD5 => __('MD5', 'wpsg'),
+ wpsg_mod_si::HASH_SHA1 => __('SHA1', 'wpsg'),
+ wpsg_mod_si::HASH_SHA256 => __('SHA256', 'wpsg'),
+ wpsg_mod_si::HASH_SHA512 => __('SHA512', 'wpsg'),
+), $this->get_option('wpsg_mod_si_hashalgo'), array('help' => 'wpsg_mod_si_hashalgo')); ?>
+
+<br />
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_si_minAge', __('Mindestalter (Produktvorgabe)', 'wpsg'), $this->get_option('wpsg_mod_si_minAge'), array('help' => 'wpsg_mod_si_minAge')); ?>
+
+<br />
+
+<?php echo wpsg_drawForm_Input('', __('Rücksprung-URL', 'wpsg'), $this->view['wpsg_mod_si']['returnURL'], array('readonly' => true, 'help' => 'wpsg_mod_si_returnURL')); ?> \ No newline at end of file