After further testing the following suggestion:
PHP Code:
<?php
$dataFinalSale = "SELECT products_final_sale FROM " . TABLE_PRODUCTS . " where products_id = " . $product['id'];
echo '<br>Step 1' ;
$result = $db->Execute($dataFinalSale);
echo '<br>Step 2';
if (!$result->EOF){
echo '<span class="alert bold">' . $result->fields['products_final_sale'] . '</span>' ;
}
?>
FYI, The above is being placed
between
PHP Code:
<td class="cartProductDisplay">
<a href="<?php echo $product['linkProductsName']; ?>"><span class="listingProductImage back"><?php echo $product['productsImage']; ?></span><span class="itemTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
<br class="clearBoth" />
and
PHP Code:
<?php
echo $product['attributeHiddenField'];
if (isset($product['attributes']) && is_array($product['attributes'])) {
echo '<div class="cartAttribsList">';
echo '<ul>';
reset($product['attributes']);
foreach ($product['attributes'] as $option => $value) {
?>
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
<?php
The error occurs and site breaks at Step 2, after the execution of $result = $db->Execute($dataFinalSale); and when attributes to the product are selected, otherwise when there are no attributes selected or involved there are no errors.