Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to check product_info page?

How to check product_info page?

Views: 926

Results 1 to 4 of 4
26 Mar 2011, 5:50 AM
#1
nlinksolution avatar

nlinksolution

New Zenner

Join Date:
Sep 2010
Posts:
32
Plugin Contributions:
0

How to check product_info page?

Hi,

Is there any possible way in zencart through which i can check that whether the current page is product_info or not?

For example, Check Home page (Index Page)

<?php if(this_is_home_page){ ?>

SOME CODE GOES HERE...

<?php } ?>

The similar Way i want to check product info page.

Its very urgent please :blink:

26 Mar 2011, 7:21 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: How to check product_info page?

$current_page_base

26 Mar 2011, 7:38 AM
#3
nlinksolution avatar

nlinksolution

New Zenner

Join Date:
Sep 2010
Posts:
32
Plugin Contributions:
0

Re: How to check product_info page?

Thank you for the info.:clap:

I find some other solution too..

<?php if($_GET['main_page']!='product_info'){?>

Again Thank you.

26 Mar 2011, 7:39 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: How to check product_info page?

$current_page_base comes from $_GET['main_page'], but is more reliable than $_GET['main_page']