Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default $this_is_home_page

    Hi does anyone know how this is defined and is it possible to have the function for other pages of your chosing. For example is it possbile to have a $this_is_page_5678 or whatever and have the $this_is_home_page functions for it by defining it somewhere?

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

    Default Re: $this_is_home_page

    $this_is_home_page is a variable set specifically to determine when you are on the "Home Page" of your site based on various configuration settings ...

    You can test for any condition you want for other things, but it would help to have an idea of what it is you are trying to do as there are 1000s and 1000s of conditions that can be tested for ...
    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!

  3. #3
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: $this_is_home_page

    Well for example I have a delivery info ezpage. I have a sidebox with an image linking to it. Currently when it is clicked on the sidebox remains when the page displays. I would like the $this_is_home_page functions to be able to hide the sidebox when it is on the ezpage if it's possible.

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

    Default Re: $this_is_home_page

    Quote Originally Posted by timdwyer42 View Post
    Well for example I have a delivery info ezpage. I have a sidebox with an image linking to it. Currently when it is clicked on the sidebox remains when the page displays. I would like the $this_is_home_page functions to be able to hide the sidebox when it is on the ezpage if it's possible.
    if (in_array($ezpage_id,explode(",",'2,5'))) {


    showsidebox = false;


    }

    The highlighted portion would be the ez-pages you wish to hide the sidebox on

  5. #5
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default Re: $this_is_home_page

    How would you check to see if you were on a specific category? for example;
    if this is page categoryId 65
    then show image65.gif

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

    Default Re: $this_is_home_page

    Quote Originally Posted by jamielife View Post
    How would you check to see if you were on a specific category? for example;
    if this is page categoryId 65
    then show image65.gif
    if (in_array($cPath,explode(",",'65')) ) {


    }

  7. #7
    Join Date
    Jun 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: $this_is_home_page

    hmm...what about for an individual product page (as opposed to a category page or the home page.) Is there a list of these anywhere? I need a few...

    thanks for your help!

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

    Default Re: $this_is_home_page

    if ($current_page_base == 'product_info' and (in_array($_GET['id'],explode(",",'234,789'))) ) {

    //execute on product 234's or product 789's info page

    }

  9. #9
    Join Date
    Jun 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: $this_is_home_page

    What if I want it to show up on all individual product pages? Not just a specific page?

  10. #10
    Join Date
    Jun 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: $this_is_home_page

    nevermind...

    if ($current_page_base == 'product_info') {

    /// code

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 28 Feb 2014, 12:30 PM
  2. !$this_is_home_page
    By poosk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Nov 2007, 05:43 PM
  3. Clarification of $this_is_home_page
    By borzoid in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Nov 2007, 05:22 PM

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