Project Home
Manuals
Contact Us
Download
Demo
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
AbanteCart v
1.3.4
is released.
Home
Help
Search
Calendar
Login
Register
AbanteCart Community
»
AbanteCart Development
»
Extensions and Add-Ons
»
detect homepage
« previous
next »
Print
Pages: [
1
]
Author
Topic: detect homepage (Read 4748 times)
natdroid
Full Member
Posts: 113
Karma: +36/-3
detect homepage
«
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?
Logged
Abantecart help
https://www.fiverr.com/s2/019342ef58
abolabo
core-developer
Administrator
Hero Member
Posts: 2048
Karma: +319/-13
web for all, all for web!
Re: detect homepage
«
Reply #1 on:
May 11, 2016, 05:49:29 AM »
do you mean case when $this->request->get['rt'] == 'index/home' or empty ?
Logged
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens
eCommerce Core
Administrator
Hero Member
Posts: 1602
Karma: +93/-1
Re: detect homepage
«
Reply #2 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) {
...
}
Logged
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett
natdroid
Full Member
Posts: 113
Karma: +36/-3
Re: detect homepage
«
Reply #3 on:
May 11, 2016, 07:33:40 AM »
I need load code in header storfront homepage before all blocks load
Logged
Abantecart help
https://www.fiverr.com/s2/019342ef58
Print
Pages: [
1
]
« previous
next »
AbanteCart Community
»
AbanteCart Development
»
Extensions and Add-Ons
»
detect homepage
Powered by SMFPacks Social Login Mod