marion
27.03.2006, 14:07
Hallo,
ich brauche Hilfe bei folgendem Problem.
Ich möchte gerne, dass in der checkout_confirmation.php auch die Artikelnummern der Option ausgewiesen wird (attributes_model).
Für die normale Artikelnummer hab ich das hinbekommen aber bei den Optionen bin ich kläglich gescheitert.
Ich bin nicht gerade eine Leuchte in PHP und hoffe jemanand von Euch kann mir helfen.
Danke
Marion
Hier der Ausschnitt aus meiner checkout_confirmation.php
$data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
for ($i = 0, $n = sizeof($order->products); $i < $n; $i ++) {
$data_products .= '<tr>'."\n".'**<td class="main" align="left" valign="top">'.$order->products[$i]['qty'].' x '.$order->products[$i]['name'].' '.$order->products[$i]['model'].'</td>'."\n".'****<td class="main" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</td></tr>'."\n";
if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
**for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j ++) {
**$data_products .= '<tr>
****<td class="main" align="left" valign="top">
****<nobr> - '.$order->products[$i]['attributes'][$j]['option'].': '.$order->products[$i]['attributes'][$j]['value'].'
<nobr></td>
****<td class="main" align="right" valign="top"> </td></tr>';
**}
}
ich brauche Hilfe bei folgendem Problem.
Ich möchte gerne, dass in der checkout_confirmation.php auch die Artikelnummern der Option ausgewiesen wird (attributes_model).
Für die normale Artikelnummer hab ich das hinbekommen aber bei den Optionen bin ich kläglich gescheitert.
Ich bin nicht gerade eine Leuchte in PHP und hoffe jemanand von Euch kann mir helfen.
Danke
Marion
Hier der Ausschnitt aus meiner checkout_confirmation.php
$data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
for ($i = 0, $n = sizeof($order->products); $i < $n; $i ++) {
$data_products .= '<tr>'."\n".'**<td class="main" align="left" valign="top">'.$order->products[$i]['qty'].' x '.$order->products[$i]['name'].' '.$order->products[$i]['model'].'</td>'."\n".'****<td class="main" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</td></tr>'."\n";
if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
**for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j ++) {
**$data_products .= '<tr>
****<td class="main" align="left" valign="top">
****<nobr> - '.$order->products[$i]['attributes'][$j]['option'].': '.$order->products[$i]['attributes'][$j]['value'].'
<nobr></td>
****<td class="main" align="right" valign="top"> </td></tr>';
**}
}