phpzen-cart

Check whether the current page is index or not in ZenCart


I'm using a ZenCart in my website, actually I want to customise the look of my site. I've done this for the index pages but not for the inner pages, because those same pages are using for the inner pages.

For example the banner image is on the index page and I don't want to see it in the inner pages. What is the correct way to put a check in the pages that whether it is index page of any other inner page.


Solution

  • simple

    check below code

    if($_GET['main_page']=='index' and !isset($_GET['cPath']))
    {
    // your code
    }