News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

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 -