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

How to check product_info page?

Started by nlinksolution on 26 Mar 2011, 5:50 AM · Views: 928

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,511
Plugin Contributions:
176

Re: How to check product_info page?

$current_page_base

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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,511
Plugin Contributions:
176

Re: How to check product_info page?

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

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.