This is the affected code:
Code:
$sale = $db->Execute("select * from " . TABLE_SALEMAKER_SALES . " where sale_categories_all like '%," . $category . ",%' and sale_status = '1' and (sale_date_start <= now() or sale_date_start = '0001-01-01') and (sale_date_end >= now() or sale_date_end = '0001-01-01') and (sale_pricerange_from <= '" . $product_price . "' or sale_pricerange_from = '0') and (sale_pricerange_to >= '" . $product_price . "' or sale_pricerange_to = '0')");
if ($sale->RecordCount() < 1) {
return $special_price;
}
if (($sale->fields["sale_manufacturer"] == 0) || (($sale->fields["sale_manufacturer"] > 0) && ($product->fields["manufacturers_id"] == $sale->fields["sale_manufacturer"]))) {
This would be public_html/includes/functions/functions_prices.php
Bookmarks