fix(cms/zahlarten): Platzhalter [#customer_freetextfield3] im Bestelltext ersetzen wie in der Kasse

This commit is contained in:
Thomas Bartelt
2026-09-27 22:48:11 +02:00
parent 91d90b6714
commit 4ea1daec9a
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -440,6 +440,8 @@ class website_dyncontent {
} }
$this->layout_object->assign('zahlarten', $list); $this->layout_object->assign('zahlarten', $list);
$this->layout_object->assign('zahlarten_gruppe', $group); $this->layout_object->assign('zahlarten_gruppe', $group);
// Platzhalter im Bestelltext (z.B. "Kundenspezifisch" bei Haendlern), wie content_cash_desk_neu.tpl
$this->layout_object->assign('zahlarten_freitext3', isset($customer->freetextfield3) ? (string)$customer->freetextfield3 : '');
return $this->layout_object->_fetch('content_box_zahlarten.tpl'); return $this->layout_object->_fetch('content_box_zahlarten.tpl');
} catch (Throwable $e) { } catch (Throwable $e) {
error_log('zahlarten_liste: '.$e->getMessage()); error_log('zahlarten_liste: '.$e->getMessage());
@@ -30,7 +30,8 @@
{if $pm->module == 'mollie' && $pm->argument == 'applepay'}<span class="zl-muted">(auf Apple-Ger&auml;ten)</span>{/if} {if $pm->module == 'mollie' && $pm->argument == 'applepay'}<span class="zl-muted">(auf Apple-Ger&auml;ten)</span>{/if}
{if $pm->module == 'mollie' && $pm->argument == 'creditcard'}<span class="zl-muted">Visa, Mastercard, American Express</span>{/if} {if $pm->module == 'mollie' && $pm->argument == 'creditcard'}<span class="zl-muted">Visa, Mastercard, American Express</span>{/if}
</div> </div>
{if $pm->order_text}<div class="zl-text">{$pm->order_text}</div>{/if} {* [#customer_freetextfield3] wie in der Kasse: individueller Text je Kunde (Haendler "Kundenspezifisch") *}
{if $pm->order_text}<div class="zl-text">{$pm->order_text|replace:'[#customer_freetextfield3]':$zahlarten_freitext3}</div>{/if}
{if isset($pm->paymentAddShown) && $pm->paymentAddShown != 0} {if isset($pm->paymentAddShown) && $pm->paymentAddShown != 0}
<div class="zl-fee"> <div class="zl-fee">
{if $pm->accountType == '1' || $pm->accountType == '3'}Abzug{else}Aufschlag{/if}: {if $pm->accountType == '1' || $pm->accountType == '3'}Abzug{else}Aufschlag{/if}: