Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    53
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Oct 2010
    Posts
    53
    Plugin Contributions
    0

    Default Re: Specials Page Blank

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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Specials Page Blank

    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 ...
    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!

  5. #5
    Join Date
    Oct 2010
    Posts
    53
    Plugin Contributions
    0

    Default Re: Specials Page Blank

    Quote Originally Posted by Ajeh View Post
    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.');

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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.

 

 

Similar Threads

  1. Help! My Specials page is blank.
    By jam1968 in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 24 Feb 2011, 01:33 AM
  2. Specials Page blank in foreign languages
    By rehopper in forum Basic Configuration
    Replies: 2
    Last Post: 20 Jan 2010, 09:22 PM
  3. Specials page showing up blank
    By mw4kids in forum Customization from the Admin
    Replies: 1
    Last Post: 28 Nov 2009, 08:53 AM
  4. Specials page is blank!
    By cufflinks2wear in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Aug 2008, 05:31 PM
  5. Specials page blank
    By stevensmedia in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Oct 2006, 02:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg