Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP! Restrict access to customers only


Guest

Recommended Posts

Posted

Hey!

I need to restrict the hole page from not authorized customers.

I have searched all over but have not found a simple solution to this.

 

I want this:

 

1 - Main login to my customer site (already made), where the customers can view news and total orders etc etc etc. This is easy in asp with dreamweaver.

2 - A link to access my store, using session information from first login (I guess its easier to modify this than modify osC(?)..) so that the customer arrives to the "store" already logged in.

 

...the rest is already ready in osC.

 

I believe there are some people in need for this function.

 

Regards

Tufve

 

See structure here

Red=restricted

spsecure.gif

Posted

You've asked this question before, but here goes. For this to work you need to have your osCommerce website in a folder and not in the root of your website.

 

Set up a page called index.html in the root of your website. On this page include a link to your osCommerce website (e.g. http://www.yourdomain.com/catalog). Customers get to see your splash page, from where they can Login to your osCommerce website. On the index.html page you can also include a downloadable and/or online form which people can use to sign up for a trade account.

 

Make your 'catalog' folder (your osCommerce website) a password protected folder, so that when people click on the link on the homepage they are required to login to access the osCommerce website.

 

Vger

Posted

Hi,

Yes, But I am afraid its more complicated than that.

I want to let them login to my customer section via my regular site, then send them to my "store" via a link, being logged in from the first log in all the way to logout after order etc is finished.

 

The hole site except the main pages (contact, about, main etc) need to be restricted.

 

Please see my main login at www.spverktyg.com

Click (logga in)

ID: 12345 (Kund ID)

Pass: 12345 (L?senord)

 

See my point? Any thoughts?

Regards

Posted

I guess i could make the main page in osC the first page where I put all the info to the customer, and removing the lef/right column until they login

 

hhmmm... :huh:

Posted

In which case, if your site is on an Apache server (won't work on Windows unless you have access to the httpd.conf file), add this line to a .htaccess file in the root of your domain.

 

AddType application/x-httpd-php .html

 

What this does is to add (in addition to .php pages) .html pages to the file types which can handle php code. You then put a Login box on your splash page which allows people to Login to your osCommerce website and takes them to it at the same time. There is a contribution called Login Box Best which could be used for this.

 

Vger

Posted

wow.. believe I need more "meet on my bones" just to know anything about what you just wrote :-

I check the contrib out and see what I can make out of that.. thanks

the server is a unix

Posted
wow.. believe I need more "meet on my bones" just to know anything about what you just wrote :-

I check the contrib out and see what I can make out of that.. thanks

the server is a unix

 

may I just hate PHP.. ? it?s like listening to a danish drunk :blink:

 

Its easy to restrict the page but the thing is, my customers will kill me if they need to login twice... I have about 2000 that will chase me till I meet the edge of the world, then they will find a way to chase me some more..

 

I read something about removing the left/right column until they logged in, I?ll try that.. :(

Posted
In which case, if your site is on an Apache server (won't work on Windows unless you have access to the httpd.conf file), add this line to a .htaccess file in the root of your domain.

 

AddType application/x-httpd-php .html

 

What this does is to add (in addition to .php pages) .html pages to the file types which can handle php code.  You then put a Login box on your splash page which allows people to Login to your osCommerce website and takes them to it at the same time.  There is a contribution called Login Box Best which could be used for this.

 

Vger

 

Will give it a try..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...