Forums / General Questions / Specials Page Blank

Specials Page Blank

Locked

Views: 897

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
24 Nov 2010, 3:32 AM
#1
gem10 avatar

gem10

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Specials Page Blank

So - I have searched the forums and found a few things but have not been able to fix the problem.

http://www.facetsofgem.com/index.php?main_page=specials

Ive looked at the debug error logs and I am not getting any errors. It's working in the side box, just not in the link. I have tried removing and resubmitting. I checked to make sure that they are in the DB.

Only thing I changed is - adding something to state a message when there are no specials, which is working when I deleted the specials.

Any idea's?

Thanks

24 Nov 2010, 4:49 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Specials Page Blank

Peek in the /cache for debug logs and see what they say when you hit this page ...

NOTE: if not using v1.3.9, which has the Debug Tool built in, you can obtain the Debug Tool in the Free Software Add Ons ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Nov 2010, 5:36 PM
#3
gem10 avatar

gem10

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Re: Specials Page Blank

Yeah - I did that and am not coming up with any errors at all.

24 Nov 2010, 5:43 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Specials Page Blank

How did you add the message for when there are no specials? :unsure:

NOTE: there isn't a link or sidebox when there are no specials ... this is already built into Zen Cart ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Nov 2010, 5:50 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Specials Page Blank

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.

24 Nov 2010, 6:37 PM
#6
gem10 avatar

gem10

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Re: Specials Page Blank

Ajeh:

How did you add the message for when there are no specials? :unsure:

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. :lookaroun

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

$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

$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

<?php if ($num_products_count ==0) {
 echo TEXT_NO_SPECIALS; }?>

after

<h1 id="specialsListingHeading"><?php echo $breadcrumb->last(); ?></h1>

in includes/languages/mytemplate/english.php

added:

define('TEXT_NO_SPECIALS', 'There are currently no specials. Please check back later.');