#2121 closed Bug/Fehler (fixed)
account_history_info.php - $ORDER_COMMENTS fehlt
| Reported by: | web-looks.de | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.7.0 |
| Component: | Shop | Version: | 2.0.6.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Im Template wird die Variable {$ORDER_COMMENTS} zur Anzeige des Kundenkommentars genutzt.
Diese Variable wird aber in der PHP Datei nicht zugewiesen.
/account_history_info.php
/templates/tpl_modified_responsive/module/account_history_info.html
Analog zur checkout_confirmation.php könnte man folgenden Code nutzen:
if (xtc_not_null($order->info['comments'])) {
$smarty->assign('ORDER_COMMENTS', nl2br(encode_htmlspecialchars($order->info['comments'])));
}
Attachments (2)
Change History (6)
comment:1 by , 4 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 4 years ago
Mich würde interessieren wie das gelöst wurde.
Siehe dazu bitte meinen Kommentar hier:
Kunden-Kommentar in der "account_history_info"
Wenn nicht bereits geschehen sollte man auch diesen Code aus der /account_history_info.php
$history_block .= xtc_date_short($statuses['date_added']). ' <strong>' .$statuses['orders_status_name']. '</strong> ' . (empty ($statuses['comments']) || empty($statuses['comments_sent']) ? ' ' : nl2br(encode_htmlspecialchars($statuses['comments']))) .'<br />';
ändern in
$history_block .= xtc_date_short($statuses['date_added']). ' <strong>' .$statuses['orders_status_name']. '</strong>' . (empty ($statuses['comments']) || empty($statuses['comments_sent']) ? ' ' : '<br />'.nl2br(encode_htmlspecialchars($statuses['comments']))) .'<br />';
weil ansonsten die erste Zeile eines evtl. vorhandenen Kommentars sofort hinter dem orders_status_name ercsheint, was bescheiden aussieht, siehe beigefügte Screenshots.
Noch besser wäre das HTML rauszuwerfen und die Komponenten in einzelen Vars zu speichern, damit man das Ganze im Template formatieren und stylen kann.
Gruß,
noRiddle
comment:3 by , 4 years ago
Ich denke, dass da sogar noch ein entfernt werden kann, da dann überflüssig:
$history_block .= xtc_date_short($statuses['date_added']). ' <strong>' .$statuses['orders_status_name']. '</strong>' . (empty ($statuses['comments']) || empty($statuses['comments_sent']) ? '' : '<br />'.nl2br(encode_htmlspecialchars($statuses['comments']))) .'<br />';

In 13794: