Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35
  1. #1
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    Plugin Contributions
    0

    Default Specials Sidebox showing on home page only

    Is is normal for the specials sidebox (set to right column) to only show on home page? I would like it to be visible when viewing products as well.

    Thanks,
    Dustin
    http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

  2. #2
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: Specials Sidebox showing on home page only

    Quote Originally Posted by divinelighting View Post
    Is is normal for the specials sidebox (set to right column) to only show on home page? I would like it to be visible when viewing products as well.

    Thanks,
    Dustin
    I am wondering the same thing.

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

    Default Re: Specials Sidebox showing on home page only

    The specials sidebox is designed to not show on the product _info page ...

    You can customize the code with your templates and overrides ...

    I prefer, when working on sideboxes, to copy both parts of a sidebox to the templates and overrides so that things are managed in pairs ... but that is a personal opinion ...
    /includes/modules/sideboxes/specials.php
    /includes/templates/template_default/sideboxes/tpl_specials.php

    Copy to your templates and overrides directories:
    /includes/modules/sideboxes/your_template_dir/specials.php
    /includes/templates/your_template_dir/sideboxes/tpl_specials.php

    If you look at this section of code, you will see how the sidebox is disabled when there is a $_GET['products_id'] set:
    Code:
    // test if box should display
      $show_specials= false;
    
      if (isset($_GET['products_id'])) {
        $show_specials= false;
      } else {
        $show_specials= true;
      }
    
      if ($show_specials == true) {
    Any time $show_specials is set to false you will not see the specials sidebox and when $show_specials is set to true then there will be a special sidebox ...

    You can add any number of conditions to the sideboxes to use this method to control them ...
    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
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Specials Sidebox showing on home page only

    I'm curious what the thought might be to have no specials on detail pages by default. Would this maybe be to not distract someone away from a page containing an add-to-cart button on it?

    Is the strategy only I'm wondering about.

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

    Default Re: Specials Sidebox showing on home page only

    In part, it is to show that it "can be done" ... the other part is to remove a distraction ...
    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
    The specials sidebox is designed to not show on the product _info page ...

    You can customize the code with your templates and overrides ...

    I prefer, when working on sideboxes, to copy both parts of a sidebox to the templates and overrides so that things are managed in pairs ... but that is a personal opinion ...
    /includes/modules/sideboxes/specials.php
    /includes/templates/template_default/sideboxes/tpl_specials.php

    Copy to your templates and overrides directories:
    /includes/modules/sideboxes/your_template_dir/specials.php
    /includes/templates/your_template_dir/sideboxes/tpl_specials.php

    If you look at this section of code, you will see how the sidebox is disabled when there is a $_GET['products_id'] set:
    Code:
    // test if box should display
      $show_specials= false;
    
      if (isset($_GET['products_id'])) {
        $show_specials= false;
      } else {
        $show_specials= true;
      }
    
      if ($show_specials == true) {
    Any time $show_specials is set to false you will not see the specials sidebox and when $show_specials is set to true then there will be a special sidebox ...

    You can add any number of conditions to the sideboxes to use this method to control them ...
    I can not get specials to work when click on [more]. I changed the false to true in includes/modules/sideboxes/temp/specials.php and still does not work.

    Did you do anything to the other file includes/template/temp/sidesboxes/tpl_specials.php? Currently, when you click on[more] it takes you to page with lines and no images or details.

    Kim

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

    Default Re: Specials Sidebox showing on home page only

    If I change the code to read:
    Code:
      if (isset($_GET['products_id'])) {
        $show_specials= true;
      } else {
        $show_specials= true;
      }
    where it always evaluates to true, then I always have a specials 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!

  8. #8
    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
    If I change the code to read:
    Code:
      if (isset($_GET['products_id'])) {
        $show_specials= true;
      } else {
        $show_specials= true;
      }
    where it always evaluates to true, then I always have a specials sidebox ...
    I have this in includes/modules/sideboxes/temp/specials.php

    // test if box should display
    $show_specials= true;

    if (isset($_GET['products_id'])) {
    $show_specials= true;
    } else {
    $show_specials= true;
    }

    And I still do not have images or descriptions, just doted lines.

    Kim

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

    Default Re: Specials Sidebox showing on home page only

    Do a search in the Developers Tool Kit in the bottom input box for:
    $show_specials

    and select Catalog and click search ... to see what files come up and make sure the files have the right settings on the server ...
    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!

  10. #10
    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
    Do a search in the Developers Tool Kit in the bottom input box for:
    $show_specials

    and select Catalog and click search ... to see what files come up and make sure the files have the right settings on the server ...
    Hi Ajeh,

    I did the admin search with developers tool kit and all came up as true. What are the correct settings for the files? Next, I need to look at settings on the server.
    Thanks, Kim

 

 
Page 1 of 4 123 ... LastLast

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