Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40
  1. #1
    Join Date
    Dec 2009
    Posts
    244
    Plugin Contributions
    0

    Default Hide What's New and Best Sellers Sideboxes

    I want to hide the What's new sidebox and Best Sellers Sidebox on my home page but I still want the column to be there as I want to create image graphics/ads to place in the side box on the right hand side.

    Would it be best to code these in, or add sideboxes for banner images?

    Thanks a bunch. I am thinking I need to edit the Best_Sellers.php file and Whats_New.php?

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Hide What's New and Best Sellers Sideboxes

    Turn them off via admin, tools, layout controller.
    Images....use Banner Box or install blank sidebox
    or logo sidebox mod/s from Free Software Addons...
    Link top left of this page

  3. #3
    Join Date
    Dec 2009
    Posts
    244
    Plugin Contributions
    0

    Default Re: Hide What's New and Best Sellers Sideboxes

    Quote Originally Posted by misty View Post
    Turn them off via admin, tools, layout controller.
    Images....use Banner Box or install blank sidebox
    or logo sidebox mod/s from Free Software Addons...
    Link top left of this page
    If I turn them off then they are turned off for every page, I only want them turned off for the home page. How is this done

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Hide What's New and Best Sellers Sideboxes

    Scroll down to foot of this page....previous threads asking
    similar i.e.
    http://www.zen-cart.com/forum/showthread.php?t=52941

  5. #5
    Join Date
    Dec 2009
    Posts
    244
    Plugin Contributions
    0

    Default Re: Hide What's New and Best Sellers Sideboxes

    Quote Originally Posted by misty View Post
    Scroll down to foot of this page....previous threads asking
    similar i.e.
    http://www.zen-cart.com/forum/showthread.php?t=52941
    Thanks for the reference, but still doesn't seem to do what I am wanting to accomplish. If I do this approach it get's rid of the entire sidebox column. I want the column on the right, just no "Best Seller" & What's New Sideboxs

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

    Default Re: Hide What's New and Best Sellers Sideboxes

    Using your templates and overrides, customize the best_sellers.php sidebox with the code in red:
    Code:
    // bof: turn off best sellers on home page
    if ($this_is_home_page) { 
        $show_best_sellers= false;
    }  
    // eof: turn off best sellers on home page
    
      if ($show_best_sellers == true) {
    Customize the whats_new.php sidebox with the code in red:
    Code:
    // bof: turn off whats_new on home page
    if ($this_is_home_page) { 
        $show_whats_new= false;
    } else {
        $show_whats_new= true;
    }
    // eof: turn off whats_new on home page
    
    // display limits
    and then lower in the code:
    Code:
      if ($show_whats_new && $random_whats_new_sidebox_product->RecordCount() > 0 ) {
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Dec 2009
    Posts
    244
    Plugin Contributions
    0

    Default Re: Hide What's New and Best Sellers Sideboxes

    Quote Originally Posted by Ajeh View Post
    Using your templates and overrides, customize the best_sellers.php sidebox with the code in red:
    Code:
    // bof: turn off best sellers on home page
    if ($this_is_home_page) { 
        $show_best_sellers= false;
    }  
    // eof: turn off best sellers on home page
    
      if ($show_best_sellers == true) {
    Customize the whats_new.php sidebox with the code in red:
    Code:
    // bof: turn off whats_new on home page
    if ($this_is_home_page) { 
        $show_whats_new= false;
    } else {
        $show_whats_new= true;
    }
    // eof: turn off whats_new on home page
    
    // display limits
    and then lower in the code:
    Code:
      if ($show_whats_new && $random_whats_new_sidebox_product->RecordCount() > 0 ) {
    I did as you said, but they are still on? The directory I altered the files in was:

    mysite.com/mytemplate/includes/modules/sideboxes/mytemplate/

    is this correct?

    If I add the code you metioned further down it shuts everything off on all the pages...$show_whats_new && $random_whats_new_sidebox_product->RecordCount() > 0 ) {

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

    Default Re: Hide What's New and Best Sellers Sideboxes

    If you just do the Best Sellers sidebox ... does that work correctly?
    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: v1.5.5]
    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!

  9. #9
    Join Date
    Dec 2009
    Posts
    244
    Plugin Contributions
    0

    Default Re: Hide What's New and Best Sellers Sideboxes

    I did as you said, but the "whats_new" is still on? The directory I altered the files in was:

    mysite.com/mytemplate/includes/modules/sideboxes/mytemplate/

    is this correct?

    If I add the code you mentioned further down in the "whats_new" file it shuts everything off on all the pages...$show_whats_new && $random_whats_new_sidebox_product->RecordCount() > 0 ) {

  10. #10
    Join Date
    Dec 2009
    Posts
    244
    Plugin Contributions
    0

    Default Re: Hide What's New and Best Sellers Sideboxes

    Quote Originally Posted by Ajeh View Post
    If you just do the Best Sellers sidebox ... does that work correctly?
    Best Sellers worked fine, just the "what's new" doesn't go off. I tried removing the else {
    $show_whats_new= true;

    code as that is the only difference in the "best seller" and "what's new" but nada...

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v153 Intelligent All, Featured, Best Sellers, New, and Specials Links
    By mikeel100 in forum General Questions
    Replies: 1
    Last Post: 24 Nov 2015, 08:46 PM
  2. Can I choose what goes inside Best Sellers
    By dermit in forum General Questions
    Replies: 1
    Last Post: 16 Nov 2010, 07:40 AM
  3. Display "Best Sellers" like "What's New" or "Specials" lists.
    By jsmooth in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Jun 2010, 12:06 AM
  4. Replies: 0
    Last Post: 1 Sep 2009, 11:26 PM
  5. Replace New Products Box w/ Best Sellers
    By mxer269 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2009, 04:36 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR