From 8dd377f356e2dfce29bb415bc2a8f050013aff79 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Sat, 3 Oct 2026 12:41:22 +0200 Subject: Produktseite: Artikelnummer als Liste, Texte mit Überschrift im Modus „neu“ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Artikelnummer und Produktcodes stehen als Liste unter dem Knopf. Langtext, Zusätzliche Informationen und Lieferumfang stehen je in einem Abschnitt mit H2. Co-Authored-By: Claude Opus 5.5 --- views/css/wpsg-theme.css | 3 ++ views/produktseite/produkt.phtml | 87 ++++++++++------------------------------ 2 files changed, 24 insertions(+), 66 deletions(-) diff --git a/views/css/wpsg-theme.css b/views/css/wpsg-theme.css index 917ad01..39b1ba2 100644 --- a/views/css/wpsg-theme.css +++ b/views/css/wpsg-theme.css @@ -344,6 +344,9 @@ .wpsg-product :where(.wpsg-product__amount) { display:flex; flex-direction:column; gap:0.3em; } .wpsg-product :where(.wpsg-product__amount > label) { margin:0; } .wpsg-product .wpsg-product__buy .wpsg_add_basket { flex:1 1 12em; min-height:44px; } +.wpsg-product :where(.wpsg-product__facts) { margin:var(--wpsg-gap) 0 0; padding:var(--wpsg-gap) 0 0; list-style:none; border-top:1px solid var(--wpsg-color-line); display:flex; flex-direction:column; gap:0.25em; opacity:var(--wpsg-muted-opacity); } +.wpsg-product :where(.wpsg-product__section) { margin-top:calc(var(--wpsg-gap) * 2); } +.wpsg-product :where(.wpsg-product__section-title) { margin:0 0 0.5em; } .wpsg_productform :where(.wpsg_product_layer) { position:absolute; left:0; top:0; width:100%; height:100%; background-color:var(--wpsg-color-surface); padding:0.75em; margin:-0.75em; box-sizing:content-box; } .wpsg_productform :where(.wpsg_product_layer img) { position:absolute; left:50%; margin-left:-8px; top:50%; margin-top:-5px; } .wpsg_product_deliverytime_holiday { padding:10px; border-left:4px solid var(--wpsg-color-notice); background-color:var(--wpsg-color-surface); } diff --git a/views/produktseite/produkt.phtml b/views/produktseite/produkt.phtml index 3fdce52..13e6b8a 100644 --- a/views/produktseite/produkt.phtml +++ b/views/produktseite/produkt.phtml @@ -89,27 +89,6 @@ - get_option('wpsg_showArticelnumber') == '1') { ?> -
- : getNr()); ?>
-
- - - getAllProductCodes(); ?> - 0) { ?> -
- - - -
- : -
- - - -
- -
@@ -358,53 +337,29 @@ - -
- - view['data']['longdescription'])) > 0) { ?> -
-
-
- view['data']['longdescription']; ?> -
-
-
- - -
- - - -
- - view['data']['moreinfos'])) > 0) { ?> -
-
-
- view['data']['moreinfos']; ?> -
-
-
+ + get_option('wpsg_showArticelnumber') == '1'); $arProductCodes = $oProduct->getAllProductCodes(); ?> + 0) { ?> +
    + +
  • : getNr()); ?>
  • - -
- - - -
- - view['data']['moreinfos2'])) > 0) { ?> -
-
-
- view['data']['moreinfos2']; ?> -
-
-
+ +
  • :
  • - -
    - + + + + + + __('Beschreibung', 'wpsg'), 'moreinfos' => __('Zusätzliche Informationen', 'wpsg'), 'moreinfos2' => __('Lieferumfang', 'wpsg')] as $field => $title) { ?> + view['data'][$field]??'')) === '') continue; $section_id = 'wpsg-product-'.$field.'-'.$this->getTemplateIndex(); ?> +
    +

    + >view['data'][$field]; ?>
    + + +
    -- cgit v1.2.3