
Originally Posted by
Ajeh
How did you add the message for when there are no specials?
NOTE: there isn't a link or sidebox when there are no specials ... this is already built into Zen Cart ...
Yeah - I know, but I have a hardlink to the site so I needed something on there when there were no specials. 
If you added that message in tpl_specials_default.php, I'd guess you messed that up somehow. You have a wild </td> in your source where your specials listing should be:
<!-- bof upload alerts -->
<!-- eof upload alerts -->
</td>
<td id="navColumnTwo" class="columnRight" style="width: 150px">
I would replace that file with a stock copy and see if that fixes it, then redo the custom message if so.
I reverted back to the stock copy, even thought all I did was add a line to that file and it didn't fix it. But it does seem to be a problem with what I did, because now that I have been playing around with it, it works, but now my text doesn't show when there are no specials lol.
Here is what I did.
includes/modules/pages/specials/main_template_vars.php
Replace
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);
}
with
Code:
$num_products_count = $specials->RecordCount();
if ($num_products_count ==0) {
$col_width=0;
} else {
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);
}
includes/templates/template_default/templates/tpl_specials_default.php
add
Code:
<?php if ($num_products_count ==0) {
echo TEXT_NO_SPECIALS; }?>
after
Code:
<h1 id="specialsListingHeading"><?php echo $breadcrumb->last(); ?></h1>
in includes/languages/mytemplate/english.php
added:
Code:
define('TEXT_NO_SPECIALS', 'There are currently no specials. Please check back later.');