News:

AbanteCart v1.4.2 is released.

Main Menu

detect homepage

Started by natdroid, May 11, 2016, 01:43:28 AM

Previous topic - Next topic

natdroid

Is there any variable or function I can use to check if the page the user is viewing is the front page?

abolabo

do you mean case when $this->request->get['rt'] == 'index/home' or empty ?

eCommerce Core

Let me clarify.

User is person managing store. So you ned to see if they are on the storefront side?
You can use:

if(IS_ADMIN === false) {
...
}

Forum Rules Code of conduct
AbanteCart.com 2010 -