Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Turning off sideboxes

    I'm currently using 1.3.9d of the zen-cart, and i bought a custom template, what I'm trying to do is turn some or all sideboxes on certain pages, i was using this thread https://www.zen-cart.com/tutorials/i...hp?article=249 as a reference and it doesnt work. Do I need to create a variable for the ez page id, or am I just missing something. Also since I'm using a custom template do I just change those files in the custom template folder and leave the core files alone, someone please help.

    thanks

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Turning off sideboxes

    Quote Originally Posted by rcj79 View Post
    I'm currently using 1.3.9d of the zen-cart, and i bought a custom template, what I'm trying to do is turn some or all sideboxes on certain pages, i was using this thread https://www.zen-cart.com/tutorials/i...hp?article=249 as a reference and it doesnt work. Do I need to create a variable for the ez page id, or am I just missing something.
    That is the correct tutorial. There are many posts in the forums dealing with this topic. Scroll down to the bottom of this page and you may find another 2 or 3 similar threads.

    Also since I'm using a custom template do I just change those files in the custom template folder and leave the core files alone, someone please help.

    thanks
    Always use the override system and don't change the core files unless absolutely necessary.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Turning off sideboxes

    This is the critical addition that switches the sidebox off when in certain ez-pages (id 2 and 5 in this example)
    PHP Code:
    if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'2,5'))) { 
    Just replace '2,5' with '#,#,#' whatever the page ids are that you want to turn off.

  4. #4
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Turning off sideboxes

    Ok I have tried to use the condition to turn off side boxes but still they are there, in my modules box I have the sideboxes folder and then my theme225 folder which is my template name am i supposed to change a copy of the sideboxes and then save in my theme225 folder?

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Turning off sideboxes

    Quote Originally Posted by rcj79 View Post
    Ok I have tried to use the condition to turn off side boxes but still they are there, in my modules box I have the sideboxes folder and then my theme225 folder which is my template name am i supposed to change a copy of the sideboxes and then save in my theme225 folder?
    includes/modules/sideboxes/theme225/

    would be the location of any sideboxes you decide to edit/modify

  6. #6
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Turning off sideboxes

    ok thanks One more question should i have a includes folder inside of the includes folder or should it just be one includes folder

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Turning off sideboxes

    Quote Originally Posted by rcj79 View Post
    ok thanks One more question should i have a includes folder inside of the includes folder or should it just be one includes folder
    there should only be 1 includes folder

  8. #8
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: Turning off sideboxes

    I have a sidebox on my website that I am not wanting to display on any of my SSL pages. Is there a way this can be done?

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Turning off sideboxes

    See this tutorial: https://www.zen-cart.com/tutorials/i...hp?article=270

    You will want to modify a conditional from tpl_main_page.php to use in your sidebox, something like
    PHP Code:
      if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_success')) ) { 
    adding all of your SSL pagenames in the list. See https://www.zen-cart.com/tutorials/i...hp?article=233 for more on this.

  10. #10
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: Turning off sideboxes

    Thank you gih42 for your help.

    That is working wonderfully!

    I found the first tutorial, but I wasn't sure how I could to use it exclude the SSL pages.

    You're help is greatly appreciated.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Turning off all sideboxes
    By willwright111 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Sep 2010, 12:26 PM
  2. Turning off specific sideboxes
    By charms in forum General Questions
    Replies: 3
    Last Post: 6 Apr 2009, 06:02 PM
  3. Turning off price in sideboxes
    By Green333 in forum Basic Configuration
    Replies: 5
    Last Post: 6 Sep 2008, 09:49 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