From ae7e400645acea5e618e1d79a25da65bc23a7011 Mon Sep 17 00:00:00 2001 From: Thomas Bartelt Date: Fri, 18 Sep 2026 19:44:08 +0200 Subject: [PATCH] feat(warenkorb): Entwurf neue Ansicht content_shoppingcart_neu.tpl (Zeilen statt Tabelle, Stepper, Summenkasten), Weiche ?ansicht=neu; Alt-Text am Thumbnail entfernt --- modules/website_shoppingcart.php | 4 + .../theme2/templates/content_shoppingcart.tpl | 2 +- .../templates/content_shoppingcart_neu.tpl | 223 ++++++++++++++++++ 3 files changed, 228 insertions(+), 1 deletion(-) create mode 100644 web/intelectra_shop/themes/theme2/templates/content_shoppingcart_neu.tpl diff --git a/modules/website_shoppingcart.php b/modules/website_shoppingcart.php index 55524f5..e247df7 100644 --- a/modules/website_shoppingcart.php +++ b/modules/website_shoppingcart.php @@ -78,6 +78,10 @@ class website_shoppingcart { // Angezeigt, wenn der Anbieter Express kann und seine Zahlart aktiv ist. $this->layout_object->assign('express_providers', $this->express_providers()); + // 18.09.2026 -- Entwurf der neuen Warenkorb-Ansicht zum Anschauen: /Warenkorb/?ansicht=neu + if (isset($_GET['ansicht']) && $_GET['ansicht'] === 'neu') { + return $this->layout_object->_fetch('content_shoppingcart_neu.tpl'); + } return $this->layout_object->_fetch('content_shoppingcart.tpl'); } // end show_shoppingcart diff --git a/web/intelectra_shop/themes/theme2/templates/content_shoppingcart.tpl b/web/intelectra_shop/themes/theme2/templates/content_shoppingcart.tpl index e89d4df..ae3111d 100644 --- a/web/intelectra_shop/themes/theme2/templates/content_shoppingcart.tpl +++ b/web/intelectra_shop/themes/theme2/templates/content_shoppingcart.tpl @@ -62,7 +62,7 @@ {$smarty.foreach.items_loop.iteration} - {$item->name|escape} + {$item->name}
diff --git a/web/intelectra_shop/themes/theme2/templates/content_shoppingcart_neu.tpl b/web/intelectra_shop/themes/theme2/templates/content_shoppingcart_neu.tpl new file mode 100644 index 0000000..2eb155f --- /dev/null +++ b/web/intelectra_shop/themes/theme2/templates/content_shoppingcart_neu.tpl @@ -0,0 +1,223 @@ +{* ===================================================================================== + Warenkorb NEU (theme2) -- Entwurf 18.09.2026, liegt neben content_shoppingcart.tpl. + Aufruf zum Anschauen: /Warenkorb/?ansicht=neu (Weiche in website_shoppingcart.php). + + Kein Tabellen-Markup mehr: jede Position ist eine Zeile (Bild, Name + Art.-Nr., Menge + mit Stepper, Preis, Entfernen), rechts ein Kasten mit Zwischensumme, MwSt, Gesamt und + den Buttons. Auf schmalen Bildschirmen stapelt sich alles. Anmerkung ist aufklappbar. + + Vertrag mit dem Modul unveraendert: update_item[], customer_info, + cart_goto ('' | 'kasse' | 'express:'). CSS ist auf .wk begrenzt und liegt hier + im Template, damit das Theme-CSS nicht angefasst werden muss. + ===================================================================================== *} +
+

Warenkorb{if $shoppingcart.items} {$shoppingcart.items|@count} {if $shoppingcart.items|@count == 1}Artikel{else}Artikel{/if}{/if}

+ + {if $shoppingcart.items} +
+ + +
+ {foreach from=$shoppingcart.items item=item name=items_loop} + {if $item->short_uri} + {assign var=itemSuri value="/`$item->short_uri`.html"} + {else} + {assign var=itemSuri value="/index.php?item_id=`$item->id`"} + {/if} +
+ + + +
+ {$item->name} + {if $item->variant_1 || $item->variant_2} +
{$item->variant_1} {$item->variant_2}
+ {/if} +
+ {if ($item->variant_1 || $item->variant_2) && $item->item_number} + Art.-Nr. {$item->item_number} + {elseif $item->attribute_7 && $item->number != $item->attribute_7} + Art.-Nr. {$item->attribute_7} ({$template_text.item_details.old_item_number_title} {$item->number}) + {else} + Art.-Nr. {$item->number} + {/if} +
+
{$item->calculatedPrices.shownPrice|number_format:"2":",":"."} € / Stück
+
Mindestabnahme: {$item->min_quantity} Stück.
+
Nur in {$item->buy_quantity}er Schritten bestellbar.
+
+
+ + + +
+
{($item->calculatedPrices.shownPrice * $item->quantity)|number_format:"2":",":"."} €
+ × +
+ {/foreach} + + {if $system_configuration.shoppingcart_ordertext == 1} +
+ Anmerkung zur Bestellung (optional) +

Zum Beispiel Gerätetyp, Farbe oder ein Hinweis für den Versand. In der Kasse noch änderbar.

+ +
+ {/if} + + +
+ + +
+ {else} +
+

Ihr Warenkorb ist leer.

+ Weiter einkaufen +
+ {/if} + + {if $system_configuration.shoppingcart_quickbuy == 1} +
+
Schnell hinzufügen
+ +
+
+ {/if} +
+ +{literal} + + +{/literal}