This is all the FEC code.. You might get better answers posting this on the FEC support thread.. Honestly I don't have any idea what the answer is The FEC files were added to help Super Order users, but support for FEC should be directed to the FEC support thread.. Also these merged files are from an older version of FEC to boot..
picandnix:
OK, an update, issue No.1 is to do with my LOCAL version pf PHP so I will ignore this bug file output.
issue No.2 I've tied it down to the Super_orders.php file in the FEC folder lines 1131 and 1239 the comments are not being commented out for some reasons. Anyone spot anything obvious please?
<table>
</tr><tr><td align="right"> </td></tr>
<tr>
<td align="right" valign="bottom"><table border="1" bgcolor="#ffff99" rules="none" frame="box" cellspacing="2" cellpadding="2"></td>
<td class="invoiceHeading" align="center"><strong><?php echo TABLE_HEADING_FINAL_STATUS; ?></strong></td>
</tr>
<tr>
<td align="right"><?php echo '<a href="' . zen_href_link(FILENAME_SUPER_ORDERS, 'action=mark_completed&oID=' . $oID) . '">' . zen_image_button('btn_completed.gif', ICON_MARK_COMPLETED) . '</a>'; ?></td>
</tr>
<tr>
<td align="right"><?php echo '<a href="' . zen_href_link(FILENAME_SUPER_ORDERS, 'action=mark_cancelled&oID=' . $oID) . '">' . zen_image_button('btn_cancelled.gif', ICON_MARK_CANCELLED) . '</a>'; ?></td>
</tr>
</table>
</table></td>
</tr>
</table></td>
</tr>
//this here 1131 Begin FEC Edit
<?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");
// bof gift wrap
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>';
}
}
?>
<?php
if (FEC_GIFT_WRAPPING_SWITCH == 'true') {
$orders_wrapping = $db->Execute("select orders_products_id
from " . TABLE_ORDERS_GIFTWRAP . "
where orders_id = '" . zen_db_input($oID) . "' and wrap = 1");
if ($orders_wrapping->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" width="50%">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><strong><?php echo GIFT_WRAP_SUMMARY_HEADING; ?></strong></td>
</tr>
<?php
while (!$orders_wrapping->EOF) {
$pos = -1;
for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
if ($order->products[$i]['orders_products_id'] ==
$orders_wrapping->fields['orders_products_id']) {
$pos = $i;
break;
}
}
$orders_wrapping->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>'. GIFT_WRAP_NO_TEXT . '</td></tr>';
}
}
?>
<!-- eof gift wrap -->
//and 1239 End FEC Edit
<?php
// show downloads
require(DIR_WS_MODULES . 'orders_download.php');
?>