From ec55f3e4012a85bf4979ff8508517f9054dd35d3 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 16 Sep 2026 14:50:06 +0200 Subject: - SCSS Parser entfernt - Warenkorb/Kasse/Zusammenfassung "weite" Breite im Gutenberg - Inhalt der Seiten optional vor Shop-Inhalt oder danach - eRechnung PDF3/A Kompatibilität MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/admin/form/emailconf.phtml | 2 +- views/admin/ueber.phtml | 4 +-- views/css/frontend.css | 18 ++++++++-- views/mods/mod_kundenverwaltung/order.phtml | 2 +- views/mods/mod_paypalapi/overview_button.phtml | 2 +- views/mods/mod_rechnungen/order_view.phtml | 18 +++++----- views/mods/mod_rechnungen/settings_edit.phtml | 40 ++++++++++++++-------- views/mods/mod_revocation/ajaxDialogContent.phtml | 2 +- views/mods/mod_revocation/page_form.phtml | 2 +- .../backendEdit/addProduct_product_selected.phtml | 2 +- views/warenkorb/basket.phtml | 9 ++--- 11 files changed, 61 insertions(+), 40 deletions(-) diff --git a/views/admin/form/emailconf.phtml b/views/admin/form/emailconf.phtml index c8c0791..2400d06 100644 --- a/views/admin/form/emailconf.phtml +++ b/views/admin/form/emailconf.phtml @@ -5,7 +5,7 @@ view['field_key'].'_absender', __('Absender', 'wpsg'), $this->get_option('wpsg_'.$this->view['field_key'].'_absender')); ?> view['field_to'] === true) { ?> - view['field_key'].'_empfaenger', __('Empfänger', 'wpsg'), $GLOBALS['wpsg_sc']->get_option('wpsg_'.$this->view['field_key'].'_empfaenger')); ?> + view['field_key'].'_empfaenger', __('Empfänger', 'wpsg'), wpsg_ShopController::getShop()->get_option('wpsg_'.$this->view['field_key'].'_empfaenger')); ?> view['field_key'].'_cc', __('CC', 'wpsg'), $this->get_option('wpsg_'.$this->view['field_key'].'_cc')); ?> diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml index ba2786d..90650c2 100644 --- a/views/admin/ueber.phtml +++ b/views/admin/ueber.phtml @@ -152,11 +152,11 @@ 'width:905px;')); ?> - getStorageRoot().'exception.log')) { ?> + getStorageRoot().'exception.log')) { ?>

- + diff --git a/views/css/frontend.css b/views/css/frontend.css index d8f46ef..e5f9f3b 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -1,8 +1,11 @@ @CHARSET "UTF-8"; /* Allgemein */ +.wpsg-flex { display:flex; } +.wpsg-align-center { align-items:center; } +.wpsg-gap-2 { gap:0.5rem; } .wpsg_clear { clear:both; } -#wpsg_error, #wpsg_message { margin-bottom:1rem; margin-left:0; } +#wpsg_error, #wpsg_message { margin-bottom:1rem; margin-left:0; padding-left:0; } #wpsg_message li, #wpsg_error li, #wpsg_notice li, #wpsg_message p, #wpsg_error p, #wpsg_notice p { list-style:none; margin-bottom:4px; padding:3px 0px 3px 8px; } #wpsg_message li, @@ -16,11 +19,17 @@ .wpsg h2 { } .wpsg_checkout label.wpsg_error { background-color:white; } label.wpsg_error { position:absolute; right:2px; top:-2px; color:#DD3D36; } -input.wpsg_error { border-color:red !important; } +input.wpsg_error { border-color:red !important; border:1px solid red; } .wpsg_spacer { width:100%; height:1px; background-color:#EAEAEA; margin-bottom:1rem; } .wpsg_noscroll { overflow:hidden; } .wpsg_upper { vertical-align:top; font-size:60%; } +.wpsg { + select.wpsg_checkout { padding:0.75em 1em; } + input.wpsg_checkout { padding:0.75em 1em; } + textarea#wpsg_checkout_comment { padding:0.75em 1em; font-family:inherit; } +} + /* Basket Widget */ .wpsg_basket_widget .wpshopgermany_linktokasse { float:right; margin-top:1rem; } @@ -32,7 +41,7 @@ input.wpsg_error { border-color:red !important; } .basket_product_wrap .basket_product_row .product_content { width:100%; display:flex; flex-direction:column; justify-content:space-between; } .basket_product_wrap .basket_product_row .product_action { display:flex; width:100%; justify-content:space-between; align-items:center; } .basket_product_wrap .basket_product_row .product_action .amount { width:100px; padding-right:40px; position:relative; margin-top:0.5em; margin-bottom:0.5em; text-align:center;} -.basket_product_wrap .basket_product_row .product_action .amount .wpsg_basket_removelink { -webkit-box-shadow:none; box-shadow:none; text-decoration:none; border:0px !important; position:absolute; right:5px; top:50%; margin-top:-8px; } +.basket_product_wrap .basket_product_row .product_action .amount .wpsg_basket_removelink { -webkit-box-shadow:none; box-shadow:none; text-decoration:none; border:0px !important; position:absolute; display:flex; right:5px; top:50%; margin-top:-8px; height:16px; width:16px; } .basket_product_wrap .basket_product_row .product_action .title { width: 60%; display:inline-block; margin-top:0.3em; margin-bottom:0.3em; } .basket_product_wrap .basket_product_row .product_action .price { width: 39%; display:inline-block; text-align:right; } .basket_product_wrap .basket_product_row .product_action .price_total { width: 39%; display:inline-block; font-weight:bold; text-align:right; } @@ -77,7 +86,10 @@ input.wpsg_error { border-color:red !important; } /* .glyphicon {width:20px !important; text-decoration:none; position:relative; display:inline-block; font-family:'Glyphicons Halflings'; line-height:1rem;} */ .wpsg_basket .wpsg_checkoutbutton { float:right; padding:0.75em 1em; } +.wpsg_basket .set_land { padding:0.75em 1em; } +.wpsg_basket .set_shipping { padding:0.75em 1em; } .wpsg_basket .wpsg_cell_gesamtsumme_value { font-weight:bold; } +.wpsg_basket input.amount { padding:0.75em 0.25em; } .wpsg_checkout2 .wpsg_overviewbutton, .wpsg_checkout2 .wpsg_checkoutbutton, .wpsg_overview .wpsg_orderbutton, diff --git a/views/mods/mod_kundenverwaltung/order.phtml b/views/mods/mod_kundenverwaltung/order.phtml index 7ddd365..8aa7f59 100644 --- a/views/mods/mod_kundenverwaltung/order.phtml +++ b/views/mods/mod_kundenverwaltung/order.phtml @@ -8,7 +8,7 @@ ?> -
+
writeFrontendMessage(); ?> diff --git a/views/mods/mod_paypalapi/overview_button.phtml b/views/mods/mod_paypalapi/overview_button.phtml index dfe5490..deef1cd 100644 --- a/views/mods/mod_paypalapi/overview_button.phtml +++ b/views/mods/mod_paypalapi/overview_button.phtml @@ -81,7 +81,7 @@ }, onError(err) { - get_option('wpsg_debugModus') === "1") { ?>console.error(err); + get_option('wpsg_debugModus') === "1") { ?>console.error(err); } }).render("#giropay-btn"); diff --git a/views/mods/mod_rechnungen/order_view.phtml b/views/mods/mod_rechnungen/order_view.phtml index 3020df2..6487bce 100644 --- a/views/mods/mod_rechnungen/order_view.phtml +++ b/views/mods/mod_rechnungen/order_view.phtml @@ -43,17 +43,17 @@ 'template_url': 'getRessourceURL('mods/mod_rechnungen/html/e_invoice_app.html'); ?>', 'default_profile': get_option('wpsg_mod_rechnungen_einvoice')); ?>, 'arProfile': ['label' => __('EN16931 Minimum', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_MINIMUM)], + 100 + ZugferdProfiles::PROFILE_EN16931 => ['label' => __('EN16931 Comfort (empfohlen)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_EN16931)], 100 + ZugferdProfiles::PROFILE_BASIC => ['label' => __('EN16931 Basic', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_BASIC)], - 100 + ZugferdProfiles::PROFILE_BASICWL => ['label' => __('EN16931 Basic WL', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_BASICWL)], - 100 + ZugferdProfiles::PROFILE_EN16931 => ['label' => __('EN16931 Comfort', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_EN16931)], 100 + ZugferdProfiles::PROFILE_EXTENDED => ['label' => __('EN16931 Extended', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_EXTENDED)], - 100 + ZugferdProfiles::PROFILE_XRECHNUNG => ['label' => __('EN16931 XRechnung 1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG)], - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => ['label' => __('EN16931 XRechnung 2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2)], - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => ['label' => __('EN16931 XRechnung 2.1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_1)], - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => ['label' => __('EN16931 XRechnung 2.2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_2)], - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => ['label' => __('EN16931 XRechnung 2.3', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_3)], - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => ['label' => __('EN16931 XRechnung 3', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_3)] + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => ['label' => __('XRechnung 3 (für öffentliche Auftraggeber)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_3)], + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => ['label' => __('XRechnung 2.3', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_3)], + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => ['label' => __('XRechnung 2.2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_2)], + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => ['label' => __('XRechnung 2.1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_1)], + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => ['label' => __('XRechnung 2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2)], + 100 + ZugferdProfiles::PROFILE_XRECHNUNG => ['label' => __('XRechnung 1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG)], + 100 + ZugferdProfiles::PROFILE_MINIMUM => ['label' => __('ZUGFeRD Minimum (keine gültige E-Rechnung)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_MINIMUM)], + 100 + ZugferdProfiles::PROFILE_BASICWL => ['label' => __('ZUGFeRD Basic WL (keine gültige E-Rechnung)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_BASICWL)] ]); ?> }); diff --git a/views/mods/mod_rechnungen/settings_edit.phtml b/views/mods/mod_rechnungen/settings_edit.phtml index 73aa609..6ce5482 100644 --- a/views/mods/mod_rechnungen/settings_edit.phtml +++ b/views/mods/mod_rechnungen/settings_edit.phtml @@ -6,20 +6,26 @@ use horstoeko\zugferd\ZugferdProfiles; - $ArrZugferdProfile = [ - 0 => __('Keine E-Rechnungsdaten erzeugen', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_MINIMUM => __('EN16931 Minimum', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_BASIC => __('EN16931 Basic', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_BASICWL => __('EN16931 Basic WL', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_EN16931 => __('EN16931 Comfort', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_EXTENDED => __('EN16931 Extended', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_XRECHNUNG => __('EN16931 XRechnung 1', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => __('EN16931 XRechnung 2', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => __('EN16931 XRechnung 2.1', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => __('EN16931 XRechnung 2.2', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => __('EN16931 XRechnung 2.3', 'wpsg'), - 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => __('EN16931 XRechnung 3', 'wpsg'), - ] + /* + * Profile in zwei Gruppen: oben die Profile, die der Validator als E-Rechnung + * anerkennt, unten MINIMUM und BASIC WL. Diese beiden sind keine gültigen + * E-Rechnungen - der KoSIT-Validator findet für sie kein Prüfszenario und weist + * das Dokument als "Dokumenttyp unbekannt" zurück. + */ + $ArrZugferdProfile = [ + 0 => __('Keine E-Rechnungsdaten erzeugen', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_EN16931 => __('EN16931 Comfort (empfohlen)', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_BASIC => __('EN16931 Basic', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_EXTENDED => __('EN16931 Extended', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => __('XRechnung 3 (für öffentliche Auftraggeber)', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => __('XRechnung 2.3', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => __('XRechnung 2.2', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => __('XRechnung 2.1', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => __('XRechnung 2', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_XRECHNUNG => __('XRechnung 1', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_MINIMUM => __('ZUGFeRD Minimum (nur Buchungshilfe, keine gültige E-Rechnung)', 'wpsg'), + 100 + ZugferdProfiles::PROFILE_BASICWL => __('ZUGFeRD Basic WL (ohne Positionen, keine gültige E-Rechnung)', 'wpsg'), + ] ?> @@ -202,6 +208,12 @@ get_option('wpsg_mod_rechnungen_einvoice'), ['help' => 'wpsg_mod_rechnungen_einvoice']); ?> + + get_option('wpsg_mod_rechnungen_cmyk_profile'), ['help' => 'wpsg_mod_rechnungen_cmyk_profile']); ?> + +

+ +

- Es gelten unsere getURL(wpsg_ShopController::URL_DATENSCHUTZ) . '">Datenschutzbestimmungen' ?> + Es gelten unsere getURL(wpsg_ShopController::URL_DATENSCHUTZ) . '">Datenschutzbestimmungen' ?>

\ No newline at end of file diff --git a/views/mods/mod_revocation/page_form.phtml b/views/mods/mod_revocation/page_form.phtml index 5640420..f3024b6 100644 --- a/views/mods/mod_revocation/page_form.phtml +++ b/views/mods/mod_revocation/page_form.phtml @@ -94,7 +94,7 @@

- . + .

diff --git a/views/order/backendEdit/addProduct_product_selected.phtml b/views/order/backendEdit/addProduct_product_selected.phtml index b423119..c15c305 100644 --- a/views/order/backendEdit/addProduct_product_selected.phtml +++ b/views/order/backendEdit/addProduct_product_selected.phtml @@ -31,7 +31,7 @@ imagehandler->getAttachmentID($oProduct->id); + $attachment_id = wpsg_ShopController::getShop()->imagehandler->getAttachmentID($oProduct->id); ?> diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index 63f46ec..19575e3 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -89,7 +89,7 @@
- value="" size="3" /> + value="" size="3" /> <?php echo __('Löschen', 'wpsg'); ?> @@ -226,11 +226,8 @@
-
- Versandkosten:', 'wpsg'), - $this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN) - ); ?> -
+
+ Versandkosten:', 'wpsg'), $this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN)); ?> arShipping) > 1) { ?>