From 753c1978e84e829538f5c0b4f2f45267fcaf8341 Mon Sep 17 00:00:00 2001 From: hartmut Date: Fri, 18 Nov 2016 06:58:34 +0000 Subject: Shop V4 Anpassungen Backend (Gutschein, Rabatt, Zahlungsart) git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5922 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/form/link.phtml | 42 +++ views/admin/kundendaten_tab2.phtml | 4 +- .../mod_creditcard/order_view_afterpayment.phtml | 14 + views/mods/mod_crefopay/settings_edit.phtml | 12 +- views/mods/mod_paypalapi/settings_edit.phtml | 41 ++- views/mods/mod_targo/order_done.phtml | 69 +++- views/mods/mod_targo/settings_edit.phtml | 5 + views/order/index.phtml | 3 +- views/order/view.phtml | 62 ++++ views/order/view_orderdata.phtml | 351 ++++++++++++++++++++- views/produkttemplates/standard.phtml | 2 +- views/warenkorb/checkout.phtml | 16 + 12 files changed, 557 insertions(+), 64 deletions(-) create mode 100644 views/admin/form/link.phtml create mode 100644 views/mods/mod_creditcard/order_view_afterpayment.phtml diff --git a/views/admin/form/link.phtml b/views/admin/form/link.phtml new file mode 100644 index 0000000..9386d2f --- /dev/null +++ b/views/admin/form/link.phtml @@ -0,0 +1,42 @@ +
+ + + +
+ +
+ view['field_link']; ?> + + view['field_config']['help'])) { ?> + + +
+ +
+ +
+ +
\ No newline at end of file diff --git a/views/admin/kundendaten_tab2.phtml b/views/admin/kundendaten_tab2.phtml index 836256a..a01c7df 100644 --- a/views/admin/kundendaten_tab2.phtml +++ b/views/admin/kundendaten_tab2.phtml @@ -24,8 +24,8 @@ view['pflicht']['custom'] as $c_id => $c) { ?> - - + + + +
view['o_id']; $k_id = $this->view['k_id']; $oOrder = wpsg_order::getInstance($o_id); @@ -45,10 +51,14 @@ $street = $oOrder-> getInvoiceStreetClear(true); $nr = $oOrder-> getInvoiceStreetNr(); - ?> - +

Obligatorische Daten für Targobank
@@ -61,26 +71,50 @@ Optionale Daten für Targobank
-
-
+
+
(hashkey)

Adressdaten aus Kundendaten
-
-
-
-
-
-
+getTitle(); +$isotitel = ''; +if (($titel == "Herr") || ($titel == "Frau")) $isotitel = toIso($titel); +?> +
+
+
+
+
+
+

-
-" placeholder="birthday">
-
+
+geb == '0000-00-00' || strtotime($dt) === false) + { + + echo ''; + + } + else + { + + echo $oCustomer->getBirthdate("Y-m-d"); + + } + +?>" placeholder="birthday">
+
+
@@ -89,7 +123,8 @@ jQuery(document).ready(function() { window.setTimeout(function() { - location.href = ""; + //location.href = ""; + jQuery('#submit').trigger("click"); }, 1000); } ); diff --git a/views/mods/mod_targo/settings_edit.phtml b/views/mods/mod_targo/settings_edit.phtml index 412850b..c1e915e 100644 --- a/views/mods/mod_targo/settings_edit.phtml +++ b/views/mods/mod_targo/settings_edit.phtml @@ -31,6 +31,11 @@
+get_option('wpsg_mod_targo_dealerShopURL'), array('help' => 'wpsg_mod_targo_dealerShopURL')); ?> +get_option('wpsg_mod_targo_dealerAbortURL'), array('help' => 'wpsg_mod_targo_dealerAbortURL')); ?> + +
+ get_option('wpsg_mod_targo_gebuehr'), true), array('help' => 'wpsg_shippay_gebuehr', 'unit' => $this->get_option('wpsg_currency').' / %')); ?> get_option('wpsg_mod_targo_mwst'), array('help' => 'wpsg_shippay_mwst')); ?> get_option('wpsg_mod_targo_mwstland'), array('help' => 'wpsg_shippay_mwstland')); ?> diff --git a/views/order/index.phtml b/views/order/index.phtml index b6dc7bd..4af0848 100644 --- a/views/order/index.phtml +++ b/views/order/index.phtml @@ -238,7 +238,8 @@ - getOrderProducts() as $oOrderProduct) { ?> + getOrderProducts(); + foreach ($oOrderProducts as $oOrderProduct) { ?> #3# für je #4#', 'wpsg'), $oOrderProduct->getCount(), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), diff --git a/views/order/view.phtml b/views/order/view.phtml index 9025d12..8df88e7 100644 --- a/views/order/view.phtml +++ b/views/order/view.phtml @@ -38,7 +38,25 @@
+ hasMod('wpsg_mod_gutschein')) { ?> + view['basket'])) && ($this->view['basket']['gs']['value'] == 0))) { ?> +   + +
+ + + hasMod('wpsg_mod_discount')) { ?> + view['basket']['sum'])) && ($this->view['basket']['sum']['preis_rabatt'] == 0))) { ?> +   + +
+ + + + +
+
@@ -57,6 +75,50 @@ + + +
+ + + + + diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index ff68461..97b66c7 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -73,7 +73,7 @@ view['data']['preis'], $this->get_option('wpsg_currency')); ?> view['data']['price_info'])) { echo '
'.wpsg_hspc($this->view['data']['price_info']).'
'; } ?> - hasMod('wpsg_mod_discount') && $this->view['data']['preis_prediscount'] > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?> + hasMod('wpsg_mod_discount') && wpsg_getInt($this->view['data']['preis_prediscount']) > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?>
: view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?>
diff --git a/views/warenkorb/checkout.phtml b/views/warenkorb/checkout.phtml index fd3d585..0d4899f 100644 --- a/views/warenkorb/checkout.phtml +++ b/views/warenkorb/checkout.phtml @@ -281,6 +281,22 @@ } ); } ); + + hasMod('wpsg_mod_addressvalidation')) { ?> + validateAddressBind( { + Strasse: '#strasse', + Nr: '#nr', + Ort: '#ort', + PLZ: '#plz', + Land: '#wpsg_land', + Key: 'get_option('wpsg_mod_addressvalidation_apikey');?>', + StorageKey: 'KundenAddress', + MsgTeil1: 'Kundenadresse' + } ); + + + //} ); + /* ]]> */ \ No newline at end of file -- cgit v1.2.3