Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Disable Sideboxes in search results

    I've tired a few things, but I can't seem to get the right side sideboxes to disable on advanced search product listing.

    I've tired this, but doens't seem to be working. ( TPL_main_page.php)

    if (in_array($current_page_base,explode(",",'advanced_search_result,advanced_search _result&search_in_description')) ) {
    $flag_disable_right = true;
    }

    Thanks to whoever can help.

  2. #2
    Join Date
    Jul 2007
    Posts
    138
    Plugin Contributions
    0

    Default Re: Disable Sideboxes in search results

    Quote Originally Posted by shackle View Post
    I've tired a few things, but I can't seem to get the right side sideboxes to disable on advanced search product listing.

    I've tired this, but doens't seem to be working. ( TPL_main_page.php)

    if (in_array($current_page_base,explode(",",'advanced_search_result,advanced_search _result&search_in_description')) ) {
    $flag_disable_right = true;
    }

    Thanks to whoever can help.
    hi

    if u want 2 disable side box permanently then go to admin> tool>layout box controller .

    u can disable side box as per choice.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Disable Sideboxes in search results

    Quote Originally Posted by shackle View Post
    ( TPL_main_page.php)
    This should do it:
    Code:
      if (in_array($current_page_base,explode(",",'advanced_search_result')) ) {
        $flag_disable_right = true;
      }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: Disable Sideboxes in search results

    Thanks, but that didn't seem to work for me.

    I double checked everything too.

    Let me know if you have anyother ideas.

    Quote Originally Posted by DrByte View Post
    This should do it:
    Code:
      if (in_array($current_page_base,explode(",",'advanced_search_result')) ) {
        $flag_disable_right = true;
      }

  5. #5
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: Disable Sideboxes in search results

    Ah nevermind there was a error in my the TPL file.

    Got it working now.

    Thanks!

 

 

Similar Threads

  1. Search Is not displaying all results/Search with Dash (-)
    By AZComp in forum General Questions
    Replies: 20
    Last Post: 25 Mar 2010, 08:25 PM
  2. Sideboxes and Advanced Search Results Page
    By ZCguy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Mar 2008, 09:52 PM
  3. Is there a way to have advanced search results open the results in a new window?
    By member in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Mar 2008, 08:27 PM
  4. Replies: 3
    Last Post: 27 Aug 2007, 08:29 PM
  5. Replies: 8
    Last Post: 5 Dec 2006, 10:52 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