Forums / Basic Configuration / Displaying info on main page when "Must log in to browse"

Displaying info on main page when "Must log in to browse"

Started by jenpen on 23 May 2012, 2:25 AM · Views: 869

Results 1 to 6 of 6
23 May 2012, 2:25 AM
#1
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Displaying info on main page when "Must log in to browse"

Hi,
I want the main page to display some basic store info and contact details, which is visible when I have set the Shop Status to "Must log in to browse", even before logging in. Is this possible? Otherwise it's not a very friendly look.

25 May 2012, 4:11 AM
#2
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Re: Displaying info on main page when "Must log in to browse"

how about put the info into:
if($_SESSION['customer_id'] == '')
{echo "please login to see";}
else
{echo "write your info here";}

focus on the open source for online shoping website.
my site: best shop 24h.com

25 May 2012, 4:13 AM
#3
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: Displaying info on main page when "Must log in to browse"

That looks pretty useful. Which file is that code in? Can I put HTML tags in there?

27 May 2012, 12:34 AM
#4
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Re: Displaying info on main page when "Must log in to browse"

it depends where your info is showed ,such as tool-define page editor-define main page.

focus on the open source for online shoping website.
my site: best shop 24h.com

29 May 2012, 5:55 AM
#5
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: Displaying info on main page when "Must log in to browse"

Sorry, I don't understand. Do you mean that I put that code in the content area for the main page in Define Pages Editor? Tried that, didn't work.

9 Jun 2012, 6:33 AM
#6
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: Displaying info on main page when "Must log in to browse"

OK, I found another thread which gave me an idea. The store (handily) was in a subfolder /catalog/ in the root directory, with the index.html file in the root redirecting to the /catalog/ folder. So, I thought, easy peasy, I'll just remove the redirect and make that index.html file into a new front page, introducing the business, with a link to the log in page /catalog/index.php.

So I did that, three days ago, but I'm still getting redirected to catalog/index.php. I can't work out why. Can anyone else?

https://www.aushiya.com.au

Thanks!