Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Location
    Pensacola, FL
    Posts
    88
    Plugin Contributions
    4

    Default Remove Featured Items Sidebox from Featured Items Page

    Seems like it should be simple enough (if not the default) but for some reason I can't find the way to prevent featured_products sidebox from displaying within the featured_products page.

    Found one similar thread in the forums about disabling the shopping cart on the shopping cart page, which offers a method similar to the one on the ZC tutorial page, which recommends wrapping most of the code (all following $content = "";?)in the MY_TEMPLAYE/sideboxes/tpl_featured.php within a conditional:


    Code:
     if (!in_array($current_page_base,explode(",",'featured_products')) ) {
    REST of the CODE
    }
    This clears the contents of the box, but the header is still there.

    It's not tpl_main_page or column_right.php I need to be looking at, is it?

    Thanks for any insight.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Remove Featured Items Sidebox from Featured Items Page

    Quote Originally Posted by mutinyzoo View Post
    Seems like it should be simple enough (if not the default) but for some reason I can't find the way to prevent featured_products sidebox from displaying within the featured_products page.

    Found one similar thread in the forums about disabling the shopping cart on the shopping cart page, which offers a method similar to the one on the ZC tutorial page, which recommends wrapping most of the code (all following $content = "";?)in the MY_TEMPLAYE/sideboxes/tpl_featured.php within a conditional:


    Code:
     if (!in_array($current_page_base,explode(",",'featured_products')) ) {
    REST of the CODE
    }
    This clears the contents of the box, but the header is still there.

    It's not tpl_main_page or column_right.php I need to be looking at, is it?

    Thanks for any insight.
    I'm not sure which file it would be in, and as such if you have text on the screen that you do not want shown, then I would search for that text to identify what it's define is, then search for that define to find what template file(s) use that text. Then, would do as you describe to wrap that portion in a conditional if statement. I don't think it would be in the particular column file nor the main_page file as those two are basically going to handle all things that are to show up in that area, and I would think a separate handler pulls all things related to that content. Somewhere deeper in that would be where you would need to look.

    By the way the search tool I'm referring to is the developer tools in the admin panel assuming that is available in your version.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Mar 2011
    Location
    Pensacola, FL
    Posts
    88
    Plugin Contributions
    4

    Default Re: Remove Featured Items Sidebox from Featured Items Page

    Thanks, MC12345678. The problem was simply that i was working in the wrong sideboxes folder. The tpl_featured.php file in MY_TEMPLATE only delivers what happens WITHIN the sidebox, BELOW the Sidebox Header.

    Copying Modules/Sideboxes/featured.php to Modules/Sideboxes/MY_TEMPLATE/featured.php and adding the COnditional IF statement THERE (as described in the above-linked ZC tutorial) did the trick.

    BTW i thanks for reminding me about the Developer Toolkit. I always end up just using TextWrangler (free version of OSX BBedit) to find text, but it doesn't offer the specific TYPE of search.

    Quote Originally Posted by mc12345678 View Post
    By the way the search tool I'm referring to is the developer tools in the admin panel assuming that is available in your version.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Remove Featured Items Sidebox from Featured Items Page

    Quote Originally Posted by mutinyzoo View Post
    Thanks, MC12345678. The problem was simply that i was working in the wrong sideboxes folder. The tpl_featured.php file in MY_TEMPLATE only delivers what happens WITHIN the sidebox, BELOW the Sidebox Header.

    Copying Modules/Sideboxes/featured.php to Modules/Sideboxes/MY_TEMPLATE/featured.php and adding the COnditional IF statement THERE (as described in the above-linked ZC tutorial) did the trick.

    BTW i thanks for reminding me about the Developer Toolkit. I always end up just using TextWrangler (free version of OSX BBedit) to find text, but it doesn't offer the specific TYPE of search.
    More than welcome. Like I said not sure which file, but knew a method to figure it out. Good work on keeping with the override format. Best of luck with your store!
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v150 repeat items in both featured items and what's new
    By buildingblocks in forum Basic Configuration
    Replies: 12
    Last Post: 29 Jun 2012, 10:11 PM
  2. Featured items or Special Items REFUSE to display on main / home page
    By masmat in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 13 Aug 2010, 06:29 PM
  3. Help removing descriptions from Featured Items appearing on main page
    By Shiftypow in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Aug 2010, 09:08 PM
  4. Featured Items sidebox
    By joerubes in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Oct 2008, 10:56 PM
  5. Featured Sidebox, increase items?
    By dwessell in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 20 Aug 2008, 07:21 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