Post by eventHandler » Wed Sep 29, 2010 4:27 am

Hi,

I have a particular element in the header that I'd like to appear on every page *except* the home page. Is there a simple IF statement I can use to determine whether I'm on the home page or not? I'm totally new to opencart, so not sure yet what the common functions/variables are. Thanks!

Newbie

Posts

Joined
Thu Sep 09, 2010 7:42 am

Post by Qphoria » Wed Sep 29, 2010 5:10 am

Code: Select all

if (isset($this->request->get['route']) && $this->request->get['route'] != 'common/home') {
    ... Loads this on non-home pages...
}

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by eventHandler » Wed Sep 29, 2010 6:22 am

Brilliant! Thank you.

Newbie

Posts

Joined
Thu Sep 09, 2010 7:42 am
Who is online

Users browsing this forum: No registered users and 6 guests