Anzeige zusätzlicher Daten in der Kundenliste
Aus Wiki | modified eCommerce Shopsoftware
Zur Navigation springenZur Suche springen[...] in der Kundenübersichtsliste möchte ich gerne als zusätzliche Info das Land des Kunden angezeigt bekommen. Da mir die customers.php aber allzu unheimlich ist, will ich da keinesfalls dran rumspielen. [...]
Antwort von Gerhard (18.08.2010)
mache dazu folgendes:
/admin/customers.php
ca. Zeile 1107
<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_LASTNAME.xtc_sorting(FILENAME_CUSTOMERS,'customers_lastname'); ?></td>
<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_FIRSTNAME.xtc_sorting(FILENAME_CUSTOMERS,'customers_firstname'); ?></td>
davor einfügen:
<td class="dataTableHeadingContent"><?php echo 'Land'.xtc_sorting(FILENAME_CUSTOMERS,'customers_country'); ?></td>
weiter ca. Zeile 1170
case 'customers_lastname-desc' :
$sort = 'order by c.customers_lastname DESC';
break;
danach einfügen:
case 'customers_country' :
$sort = 'order by a.entry_country_id';
break;
case 'customers_country-desc' :
$sort = 'order by a.entry_country_id DESC';
break;
weiter ca. Zeile 1296
<td class="dataTableContent"><b><?php echo $customers['customers_lastname']; ?></b></td>
<td class="dataTableContent"><?php echo $customers['customers_firstname']; ?></td>
davor einfügen:
<td class="dataTableContent"><?php echo xtc_get_country_name($customers['entry_country_id']); ?></td>
Gruss G.