Page 19 of 19 FirstFirst ... 9171819
Results 181 to 189 of 189
  1. #181
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by marton_1 View Post
    Sorry to drag up an old thread.

    I have been experimenting with not showing side columns on certain pages.

    I used the prepared code in tpl_main_page.php to stop columns on the home page which works fine.

    But does not stop columns for other pages, I assume the page name is this guy? <title>Accessories</title>
    So the code to I used is
    if (in_array($current_page_base,explode(",",'Accessories')) ) {
    $flag_disable_right = true;
    }

    Probably I did something dumb



    <title>Accessories</title>
    Post a link to your site please.

  2. #182
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Thank you for your interest.

    Here is a link to my site page in question, this page is in English - the site pages are also in German language!

    http://www.simmar.ch/catalog/index.p...en&cPath=81_67

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

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by marton_1 View Post
    Thank you for your interest.

    Here is a link to my site page in question, this page is in English - the site pages are also in German language!

    http://www.simmar.ch/catalog/index.p...en&cPath=81_67
    You may want to try

    PHP Code:
    if (in_array($current_page_base,explode(",",'cPath=81_67')) ) {
    $flag_disable_right true;

    I could be wrong though.....

  4. #184
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by frank18 View Post
    You may want to try

    PHP Code:
    if (in_array($current_page_base,explode(",",'cPath=81_67')) ) {
    $flag_disable_right true;

    I could be wrong though.....
    Good idea but did not work. I also tried with the full url but no luck.

  5. #185
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Show/Hide sideboxes based on page

    I think it was done this way, but I have not tried.
    PHP Code:
    if (in_array($current_page_base,explode(",",'index&cPath=81_67')) ) {
    $flag_disable_right true;


  6. #186
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Sadly still does not work.

    I also tried stopping side boxes in EZ pages with the following but also did not work - luckily I can turn these off in the admin.

    // the following IF statement stops side columns on EZ *
    if (in_array($ezpage_id,explode(",",'2,5'))) {
    $flag_disable_right = true;
    }

    I am using V1.5.1 with the classic green template :)

  7. #187
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Show/Hide sideboxes based on page

    If you want to turn it off when the category is 67, have you tried:
    Code:
    if ($current_category_id == 67 ) {
      $flag_disable_right = true;
    }
    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!

  8. #188
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by Ajeh View Post
    If you want to turn it off when the category is 67, have you tried:
    Code:
    if ($current_category_id == 67 ) {
      $flag_disable_right = true;
    }
    Great, that works

    Many many thanks

  9. #189
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Show/Hide sideboxes based on page

    Thanks for the update that this 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!

 

 
Page 19 of 19 FirstFirst ... 9171819

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