DivaVocals:
Working on merging the COWOA orders.php file with the one for Super Orders, and discovered that there is an entire chunk of code which doesn't seem to belong to COWOA or for that matter to do anything at all.. Lines 663 - 714
<?php
if (MODULE_ORDER_TOTAL_DOUBLEBOX_STATUS == 'true') {
$orders_doublebox = $db->Execute("select orders_products_id
from " . TABLE_ORDERS_DOUBLEBOX . "
where orders_id = '" . zen_db_input($oID) . "' and wrap = 1");
if ($orders_doublebox->RecordCount() > 0) {
?>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><table border="1" cellspacing="0" cellpadding="5">
<tr>
<td class="smallText" align="center"><strong><?php echo DOUBLEBOX_SUMMARY_HEADING; ?></strong></td>
</tr>
<?php
while (!$orders_doublebox->EOF) {
$pos = -1;
for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
if ($order->products[$i]['orders_products_id'] ==
$orders_doublebox->fields['orders_products_id']) {
$pos = $i;
break;
}
}
$orders_doublebox->MoveNext();
if ($pos == -1) {
continue; // Should never happen
}
$i = $pos;
echo '<tr>';
echo '<td class="accountProductDisplay">' . $order->products[$i]['name'];
if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
echo '<br><nobr><small>';
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
echo ' - ' . $order->products[$i]['attributes'][$j]['option'] . ": " . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])) . '<br>';
}
echo '</small></nobr>';
}
echo '</td>';
echo '</tr>';
}
?>
</table></td>
</tr>
<?php
} else {
echo '<tr><td>'. DOUBLEBOX_NO_TEXT . '</td></tr>';
}
}
?>
I don't know what the code was for but I see that it is in FEC orders.php file also. The original coder must have left it in for some reason or he forgot to remove it, but It is not necessary for COWOA to have to work.
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation