Page 4 of 19 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 189
  1. #31
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: Show/Hide sideboxes based on page

    How would I do this to make a banner only display on ezpages?

    Here is what I have so far in the tpl_main_page.php:

    PHP Code:
    <!--bof-banner #5 display -->
    <?php
     $show_ezpages 
    false;
     if (isset(
    $_GET['pages_id']) and zen_pages_id_valid($_GET['pages_id'])) {
            
    $show_ezpages true;
        }
      if (
    $show_ezpages == true) {
       if (
    SHOW_BANNERS_GROUP_SET5 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET5)) {
         if (
    $banner->RecordCount() > 0) {
        
    ?>
    <div id="bannerFive" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>
    <?php
        
    }
      }
    }
    ?>
    <!--eof-banner #5 display -->
    zen_pages_id_valid is a clone of zen_products_id_valid

    Right now I'm getting all false and the banner does not display... Hopefully someone can clean up my mess!

  2. #32
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: Show/Hide sideboxes based on page

    Solution:

    PHP Code:
    <?php
      
    if ($_GET['main_page'] == page) {
        
    // put in the code of the banner display
      
    }
    ?>

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

    Default Re: Show/Hide sideboxes based on page

    Thanks for the update of what worked for you ...
    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!

  4. #34
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    I disabled sideboxes on my Home Page using this code

    if ($this_is_home_page == true) {
    $flag_disable_left = true;
    $flag_disable_right = true;
    }
    And one thing I've noticed is... with my Cateogries Dropdown, if you are already in a category and happen to just select "shop by category" it takes you to the Home Page, BUT the Sideboxes appear...

    It's showing the link as ..../index.php?main_page=index&cPath=
    same with "shop by brand" which is showing .../index.php?manufacturers_id=&main_page=index

    What do I need to fix this?

    Also to hide just my navbar/breadcrumbs...is $flag_disable_header = true; right? I was just guessing and it seems to work...

  5. #35
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    at this moment i just want my reviews sidebox to show up in my ez page #11 how do i go about this

  6. #36
    Join Date
    Nov 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Hi I'm working on a site that has about 100 products and I would like, 3 sideboxes unique to each product.

    Now using the techniques that I've seen the server would need to "if then" about 300 potential sideboxes ... will this bog down the server?

    If so, is there an alternative technique?

    Please let me know if my question is unclear.

    Thanks.

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

    Default Re: Show/Hide sideboxes based on page

    If these genuinely are unique then yes it will slow things down as all 300 would have to be checked every time a page is loaded to see if they apply.

    However, often it's possible to make this easier by having a smaller number of sideboxes containing code that is conditional upon which product is being displayed.
    Kuroi Web Design and Development | Twitter

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

  8. #38
    Join Date
    Nov 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Thanks for the reply Kuroi.

    I'm really more of an html/graphics guy - would it be too much of a bother to request a code sample? (of the conditional code mentioned - based on a product)

  9. #39
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    772
    Plugin Contributions
    0

    red flag Re: Show/Hide sideboxes based on page

    Hi,

    On the shopping cart page, there is no point showing showing cart sidebox. How do I turn it off easily?
    Using zencart v.1.3.9e
    Website: http://www.dealbyethan.com
    Email: admin AT dealbyethan DOT com

  10. #40
    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 dealbyethan.com View Post
    On the shopping cart page, there is no point showing showing cart sidebox. How do I turn it off easily?
    Admin > Configuration > Layout Settings > Shopping Cart Box Status (set to 2)
    Kuroi Web Design and Development | Twitter

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

 

 
Page 4 of 19 FirstFirst ... 2345614 ... 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