I've made my own solution to this. There's probably a better way to code it, but I'm a php hacker, not an expert.
Rob, I hope this was your original issue, otherwise I've terribly hijacked your thread.
There are three files that need adjustments:
includes/modules/pages/specials/main_template_vars.php (there's no override here, you're modifying a core file)
includes/templates/YOUR_TEMPLATE/templates/tpl_specials_default.php
includes/languages/YOUR_TEMPLATE/english.php
Step 1. open includes/modules/pages/specials/main_template_vars.php
Find:
Code:
$num_products_count = $specials->RecordCount();
if ($num_products_count) {
if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
$col_width = floor(100/$num_products_count);
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
}
Replace with:
Code:
$num_products_count = $specials->RecordCount();
if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 and $num_products_count!=0) {
$col_width = floor(100/$num_products_count);
} else {
if ($num_products_count ==0) {
$col_width = 0;
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
}
}
Step 2. open up includes/templates/YOUR_TEMPLATE/templates/tpl_specials_default.php
Find:
Code:
<h1 id="specialsListingHeading"><?php echo $breadcrumb->last(); ?></h1>
Add this after:
Code:
<?php if ($num_products_count ==0) {
echo TEXT_NO_SPECIALS; }?>
Step 3. You need to add a define for the above code. Open up includes/languages/YOUR_TEMPLATE/english.php
Add this somewhere, changing the text to your preference:
Code:
define('TEXT_NO_SPECIALS', 'There are currently no specials. Please check back later.');