Page 3 of 19 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 189
  1. #21
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by MeltDown View Post
    That did it!! Thanks Kuroi
    Another (related) question, if I may: The items on the page (such as "New Products For March" for example) are all now aligned to the right. Can you tell me how to center the page?

    Thanks again!

  2. #22
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Show/Hide sideboxes based on page

    Not sure what you mean. If you are referring to the site for which you have provided a link, I can't see this behavior, at least not in Firefox.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #23
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Sorry, I keep forgetting that I'm working on someone else's site now and need to provide that link!

    PittiVintage

    As per your recomendation, I sucessfully added the following code to tpl_main_page.php to remove the sidebox from that page only.

    if ($this_is_home_page == true) {
    $flag_disable_left = true;
    $flag_disable_right = true;
    }
    However, all items are pulling to the right and I was hoping to correct that.

    thanks!

  4. #24
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Show/Hide sideboxes based on page

    Ah. Yes. Now I see the problem.

    The key piece of information not available when the earlier advice was given, was that you are basing your design on jettrue's Apple Zen template.

    Unlike the default Zen Cart template that has a layout table designed to create some rigidity and support the site when left, right or both side columns are turned off, Jade designed Apple Zen specifically to work with two columns. Take the right hand one away and the structure collapses.

    I recommend taking the question over to the Apple Zen support thread as Jade is the best person to answer it, but be prepared for the possibility that it simply wasn't designed to be able to do this.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #25
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    OK, I'll take my question over to the Zen Apple thread. I didn't ask there in the first place because I've been pestering Jade with so many questions. I thought this one was more "Zen" and less template but I guess not...

    Thanks - Tim

  6. #26
    Join Date
    Feb 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Since it seems related, I was wondering if you could help with my problem? I need to turn off the right hand column of sideboxes on all product info pages, but leave the column on everywhere else in the site. Is there an efficient way to do this? I know nothing about php, so please be as detailed as you can, if this is even possible.

  7. #27
    Join Date
    Feb 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Please disregard my question (above). I found a forum post where someone was trying to turn off sideboxes for his category pages, and I started toying around with the code that they gave him in order to see if I could figure out the pattern and make it work for products pages instead. It worked.

    For anyone else trying to turn off the righthand sideboxes on ALL their product pages, I inserted the following in my tpl_main_page.php file, towards the top:


    if ($current_page_base == 'product_info' and $products_id >= '') {
    $flag_disable_right = true;
    }


    Please be warned that I'm a "PhP Dummy", so feel free to correct me if this code isn't technically right. All I know is that it works

  8. #28
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Show/Hide sideboxes based on page

    There's a FAQ entry that covers this for a number of different situations.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #29
    Join Date
    Apr 2005
    Posts
    11
    Plugin Contributions
    0

    help question Re: Show/Hide sideboxes based on page

    I need to hide the Logo sidebox mod I added to my site when a use is on the main page only. Any ideas zenners? I read a few threads but none spoke to my situation specifically.

  10. #30
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by uasport View Post
    I need to hide the Logo sidebox mod I added to my site when a use is on the main page only. Any ideas zenners? I read a few threads but none spoke to my situation specifically.
    This FAQ entry should speak directly to your situation
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 3 of 19 FirstFirst 1234513 ... LastLast

Similar Threads

  1. v150 Any way to show/hide payment modules dynamically based on order total?
    By Limitless in forum Addon Payment Modules
    Replies: 2
    Last Post: 27 Sep 2012, 03:22 PM
  2. Show/Hide INformation Sidebox based on page
    By atracksler in forum Basic Configuration
    Replies: 12
    Last Post: 17 Jun 2011, 04:21 PM
  3. Show/Hide sideboxes based on page
    By monkeyjr47906 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Nov 2007, 07:25 PM
  4. Hide sideboxes on main page
    By disciple in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 11 Jan 2007, 07:38 AM

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