Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Only customers from one domain allowed


2 replies to this topic

#1 Dandon

  • Community Member
  • 24 posts
  • Real Name:Daniel Donate
  • Gender:Male
  • Location:Madrid, Spain

Posted 05 March 2010, 16:01

Hi all,

I need to setup a fairly standard store but with following "special" features: No shopping cart or checkout, it's basically a catalog for locating product codes for use by one of my dealers. But I need to allow people from taht company to register and login, only if their email is from a single certain domain. I.e. I want to have only customers with email like user1@good_domain.com or user2@good_domain.dom be able to register, and anyuser@anyotherdomain.com to get rejected. The purpòse is to install a "only registered user can see prices" only contrib. Therefore only people from taht company can see prices. obviously it should be done with some kind of email sent to the customer to validate.

Do you know of some contrib(s) that can allow me to automatically do that? I only need the domain fuilter part, the other features I have already located. I could set it up to manually validate requets, but I'm talking of perhaps a couple hundred people.
TIA

#2 burt

  • Community Sponsor
  • 6,970 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 05 March 2010, 16:51

A small piece of jQuery would accomplish this to show the visitor that only 1 email domain can be used to create an account. javascript is client side so is not difficult to get around, so also set $error=true in create_account using the $_post'd email address.

Make sense?
The Dirty Little Secrets that no osCommerce template sellers want you to know...revealed...

Support is commercially available. The question is whether you value your business
highly enough to spend money on it.

For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/

#3 Dandon

  • Community Member
  • 24 posts
  • Real Name:Daniel Donate
  • Gender:Male
  • Location:Madrid, Spain

Posted 08 March 2010, 11:59

Thank you for your answer. Though i'm not a programmer I can understand what you mean. Yes, it makes sense :) Will try to do that.

Edited by Dandon, 08 March 2010, 11:59.