Results 1 to 10 of 35

Hybrid View

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

    Default Re: Specials Sidebox showing on home page only

    Sounds like an issue with your template files ...

    You may want to compare them to the original files to see if anything stands out ...

    Beyond Compare from scootersoftware.com is a handy tool for this ...
    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!

  2. #2
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Specials Sidebox showing on home page only

    Quote Originally Posted by Ajeh View Post
    Sounds like an issue with your template files ...

    You may want to compare them to the original files to see if anything stands out ...

    Beyond Compare from scootersoftware.com is a handy tool for this ...
    I compared with original files and did not see anything...

    Here are two files unless there are others I do not know about.

    include/modules/sidebox/temp/specials.php


    HTML Code:
    // test if box should display
      $show_specials= true;
    
      if (isset($_GET['products_id'])) {
        $show_specials= true;
      } else {
        $show_specials= true;
      }
    
      if ($show_specials == true) {
        $random_specials_sidebox_product_query = "select p.products_id, pd.products_name, p.products_price,
                                        p.products_tax_class_id, p.products_image,
                                        s.specials_new_products_price,
                                        p.master_categories_id
                                 from " . TABLE_PRODUCTS . " p, " .
                                          TABLE_PRODUCTS_DESCRIPTION . " pd, " .
                                          TABLE_SPECIALS . " s
                                 where p.products_status = 1
                                 and p.products_id = s.products_id
                                 and pd.products_id = s.products_id
                                 and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                                 and s.status = 1";
    
    //    $random_specials_sidebox_product = zen_random_select($random_specials_sidebox_product_query);
        $random_specials_sidebox_product = $db->ExecuteRandomMulti($random_specials_sidebox_product_query, MAX_RANDOM_SELECT_SPECIALS);
    
        if ($random_specials_sidebox_product->RecordCount() > 0)  {
          require($template->get_template_dir('tpl_specials.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_specials.php');
          $title =  BOX_HEADING_SPECIALS;
          $title_link = FILENAME_SPECIALS;
          require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
        }
      }
    ?>
    includes/templates/temp/sideboxes/tpl_specials.php

    HTML Code:
    $content = "";
      $specials_box_counter = 0;
      while (!$random_specials_sidebox_product->EOF) {
        $specials_box_counter++;
        $specials_box_price = zen_get_products_display_price($random_specials_sidebox_product->fields['products_id']);
        $content .= '<div class="sideBoxContent centeredContent">';
        $content .= '<a href="' . zen_href_link(zen_get_info_page($random_specials_sidebox_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_specials_sidebox_product->fields["master_categories_id"]) . '&products_id=' . $random_specials_sidebox_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_specials_sidebox_product->fields['products_image'], $random_specials_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); 
        $content .= '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a>';
        $content .= '<div>' . $specials_box_price . '</div>';
        $content .= '</div>';
        $random_specials_sidebox_product->MoveNextRandom();
      }
    ?>
    Do you see anything?

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

    Default Re: Specials Sidebox showing on home page only

    Does the Specials page show when you use the link to specials from the Categories sidebox?
    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!

  4. #4
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Specials Sidebox showing on home page only

    Quote Originally Posted by Ajeh View Post
    Does the Specials page show when you use the link to specials from the Categories sidebox?
    No, it does not work from the categories sidebox either.

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

    Default Re: Specials Sidebox showing on home page only

    This makes me think you are looking in the wrong place for the problem ...

    Check the files:
    /includes/templates/template_default/templates/tpl_specials_default.php
    /includes/languages/english/specials.php

    against your template files:
    /includes/templates/temp/templates/tpl_specials_default.php
    /includes/languages/english/temp/specials.php
    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!

  6. #6
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Specials Sidebox showing on home page only

    Quote Originally Posted by Ajeh View Post
    This makes me think you are looking in the wrong place for the problem ...

    Check the files:
    /includes/templates/template_default/templates/tpl_specials_default.php
    /includes/languages/english/specials.php

    against your template files:
    /includes/templates/temp/templates/tpl_specials_default.php
    /includes/languages/english/temp/specials.php
    Checked the files and they match....

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

    Default Re: Specials Sidebox showing on home page only

    Is this on the site in your signature?

    If so, your URL is being built wrong and with that is the SEO stuff you are using or your configure.php file ...

    View Source and you will see there are things built for the page ...

    Turn off the SEO stuff, does this correct the problem?
    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!

 

 

Similar Threads

  1. "Specials" sidebox showing only for certain categories?
    By kcb410 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Sep 2012, 01:25 AM
  2. Twitter sidebox only on home page
    By krazey in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Dec 2010, 09:04 PM
  3. Index Page Only Showing Specials
    By leevil123 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 11 Feb 2010, 08:00 AM
  4. home page only sidebox
    By Minnie Mouse in forum Templates, Stylesheets, Page Layout
    Replies: 27
    Last Post: 12 Oct 2009, 12:38 PM
  5. Specials sidebox not showing at Specials page
    By JuanDBB in forum Basic Configuration
    Replies: 2
    Last Post: 15 Mar 2009, 04:59 PM

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