Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2008
    Posts
    45
    Plugin Contributions
    0

    Default Disable Specials Sidebox On Contact Us Page

    Hi Guys,

    Have added the following to my specials sidebox file:
    if ($this_is_home_page) {
    $show_specials = false;
    }

    Which disables the box on the homepage. Im now also wanting to disable the box on:
    Contact Page
    And Category Listing Page IE Subcategory icon page....

    I tried adding:

    if ($this_is_contact_us_page) {
    $show_specials = false;
    }

    But that dosn't seam to work...

    Thanks guys...

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

    Default Re: Disable Specials Sidebox On Contact Us Page

    Quote Originally Posted by wdd49 View Post
    Hi Guys,

    Have added the following to my specials sidebox file:
    if ($this_is_home_page) {
    $show_specials = false;
    }

    Which disables the box on the homepage. Im now also wanting to disable the box on:
    Contact Page
    And Category Listing Page IE Subcategory icon page....

    I tried adding:

    if ($this_is_contact_us_page) {
    $show_specials = false;
    }

    But that dosn't seam to work...

    Thanks guys...
    try using the following:

    if ($current_page_base == 'contact_us') {
    $show_specials = false;
    }

  3. #3
    Join Date
    Jan 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Disable Specials Sidebox On Contact Us Page

    Quote Originally Posted by clydejones View Post
    try using the following:

    if ($current_page_base == 'contact_us') {
    $show_specials = false;
    }
    Works a treat thanks!

    Any know know what statement i need to use for the category pages?

    Pages like this one:
    http://yorkshiregardencentre.co.uk/c...index&cPath=24

    Greg

  4. #4
    Join Date
    Jan 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Disable Specials Sidebox On Contact Us Page

    Ok i worked out if i add:
    if (isset($_GET['cPath'])) {

    $show_specials= false;

    }

    It disables the sidebox on the category and sub category menu but it also disables it on product listing page.

    Any advice? How to get this working to just disable on the category and sub category menu and not product listing page?

 

 

Similar Threads

  1. v138a how to disable contact us link and page?
    By zenartman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Apr 2012, 06:49 PM
  2. Disable add to cart button in specials sidebox
    By lala rock in forum General Questions
    Replies: 3
    Last Post: 6 Feb 2012, 08:01 AM
  3. Specials sidebox not showing at Specials page
    By JuanDBB in forum Basic Configuration
    Replies: 2
    Last Post: 15 Mar 2009, 04:59 PM
  4. Disable Catalog sidebox when in Contact Us page
    By jameslo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Feb 2008, 09:32 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