AbanteCart Community

AbanteCart Development => Extensions and Add-Ons => Topic started by: natdroid on May 11, 2016, 01:43:28 AM

Title: detect homepage
Post by: natdroid on May 11, 2016, 01:43:28 AM
Is there any variable or function I can use to check if the page the user is viewing is the front page?
Title: Re: detect homepage
Post by: abolabo on May 11, 2016, 05:49:29 AM
do you mean case when $this->request->get['rt'] == 'index/home' or empty ?
Title: Re: detect homepage
Post by: eCommerce Core on May 11, 2016, 07:29:06 AM
Let me clarify.

User is person managing store. So you ned to see if they are on the storefront side?
You can use:
Code: [Select]
if(IS_ADMIN === false) {
...
}
Title: Re: detect homepage
Post by: natdroid on May 11, 2016, 07:33:40 AM
I need load code in header storfront homepage before all blocks load