Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2010
    Posts
    20
    Plugin Contributions
    0

    Default How-to: get ez-page id on code?

    Hi, i wonder what variable or syntax is used to get the id of an ez page, like for example:
    if ezpage number=1 then do this command. help please, thanks

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: How-to: get ez-page id on code

    /index.php?main_page=page&id=1

    hope this helps!

  3. #3
    Join Date
    Dec 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: How-to: get ez-page id on code

    hi, i mean on php conditions like:
    if(page id == 1){
    codes;
    }

    is there a global variable ready from zen cart to get that page id == #?

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: How-to: get ez-page id on code

    I guess I should ask what you are trying to do cause their are several ways:

    for example:
    if (in_array($ezpage_id,explode(",",'2,5'))) {

    codes;
    }

  5. #5
    Join Date
    Dec 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: How-to: get ez-page id on code

    ok that's a clue thanks, will try it.
    i want some images on my header to appear different on pages.

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How-to: get ez-page id on code?


  7. #7
    Join Date
    Dec 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: How-to: get ez-page id on code?

    great!! i'll try this mod, thanks

  8. #8
    Join Date
    Dec 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: How-to: get ez-page id on code

    Quote Originally Posted by rbarbour View Post
    I guess I should ask what you are trying to do cause their are several ways:

    for example:
    if (in_array($ezpage_id,explode(",",'2,5'))) {

    codes;
    }
    thanks, this works for me.
    thanks for the mod as well

 

 

Similar Threads

  1. how to get the value of current category with PHP code?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 16 Feb 2011, 05:27 PM
  2. How do I get my new payment module to check the return code?
    By hasnut in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 4 Jun 2010, 08:52 PM
  3. how can I code in a default coupon code into checkout page redeem, then auto-refresh?
    By lankeeyankee in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 29 Nov 2008, 04:56 AM
  4. Replies: 6
    Last Post: 4 Mar 2008, 07:52 PM
  5. Replies: 8
    Last Post: 12 Feb 2008, 10:07 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