Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default how to refer to a specific ez page in code?

    I know I've used this before but it was a long time ago.

    I want to include something only one ez page in the html_header:

    if ($pageid = 7) {

    It's obviously not $pageid but I cannot remember nor was I able to find in a search of the forum. Anybody know right off hand?
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,971
    Plugin Contributions
    96

    Default Re: how to refer to a specific ez page in code?

    I'm not totally familiar with the EZ-pages interface, but what about something like:
    Code:
    if ($current_page_base == FILENAME_EZPAGES && $ezpage_id == 7) { }
    Last edited by lat9; 7 Jul 2016 at 02:15 PM. Reason: Correct variable name

  3. #3
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: how to refer to a specific ez page in code?

    that ezpage_id was what I needed! Thanks!
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,971
    Plugin Contributions
    96

    Default Re: how to refer to a specific ez page in code?

    No problem; I'm happy to have helped.

 

 

Similar Threads

  1. v154 How to create a coupon/discount code for a specific group of email address
    By kman55 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 May 2015, 06:11 PM
  2. v139g Adding custom code to a specific Ez Page
    By stephenconnolly in forum General Questions
    Replies: 3
    Last Post: 7 Oct 2012, 12:19 AM
  3. how to make a specific zip code required for registration?
    By igofresh in forum Managing Customers and Orders
    Replies: 4
    Last Post: 8 Nov 2010, 07:12 PM
  4. Replies: 2
    Last Post: 1 Dec 2008, 03:52 AM
  5. PHP Question: Inserting code to refer to another .php file
    By datatv in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Sep 2008, 10:24 PM

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