Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 5 of 5

Thread: Hide site to all but registered customers (wholesale site)

  1. #1
    rc2user
    Guest


    Default Hide site to all but registered customers (wholesale site)

    Hello,

    I'm working on a new site using ocsmax 2.5 rc1 that will be for wholesale customers only.

    I've got a mod working so the prices aren't shown unless the customer is in the wholesale group (ie, default retail customers get ASK FOR PRICE)

    But what I really want is to also have the whole store hidden from all customers unless they are registered.

    I don't mind search engines not finding the products, in fact I'd prefer that really as I do't want it to conflict with retail sites. Wholesale customers will find us anyway without the products being indexed.

    So I'd have a home page, intro text, and a way to log in or register. That's more or less it, until they log in.

    Is there a simple way to do this?

    Thanks In advance
    RC2User (although not any more - can I change my name?!)

  2. #2
    tcshadow
    Guest


    Default Re: Hide site to all but registered customers (wholesale site)

    to stop search engines indexing the site simply deny all in robots.txt

    To restrict the site to people who should know only, don't advertise it and stick it in a subfolder

    ie
    Code:
    www.yourdomain.com/mysecretwholesaleonlywebsiteforspecialcustomersthatidontadvertisetojustanybodybecauseitssospecial

  3. #3
    rc2user
    Guest


    Default Re: Hide site to all but registered customers (wholesale site)

    Quote Originally Posted by tcshadow View Post
    to stop search engines indexing the site simply deny all in robots.txt

    To restrict the site to people who should know only, don't advertise it and stick it in a subfolder

    ie
    Code:
    www.yourdomain.com/mysecretwholesaleonlywebsiteforspecialcustomersthatidontadvertisetojustanybodybecauseitssospecial
    thanks, but I was hoping for some way to integrate it into the site properly so people could view the static pages and the login/register pages, without viewing the categories/products.

    Guess I'll have to write it myself.

    Thanks anyway

  4. #4
    osCMax Development Team

    Hide site to all but registered customers (wholesale site)

    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,517
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    pgmarshall     $ 35.00
    Rep Power
    81


    1 out of 1 members found this post helpful.

    Default Re: Hide site to all but registered customers (wholesale site)

    This has been asked before a few times ... if you have a quick browse through oscommerce or google you will find a couple of options.

    This one is the easiet and best: osCommerce Community Add-Ons

    3 line install

    find \Includes\application_top.php

    Add this code before the last "?>" symbol

    if (strpos($PHP_SELF, "login.php") == 0 && strpos($PHP_SELF, "logoff.php") == 0 && strpos($PHP_SELF, "create_account.php") == 0 && strpos($PHP_SELF, "create_account_success.php") == 0 && strpos($PHP_SELF, "privacy.php") == 0 && strpos($PHP_SELF, "conditions.php") == 0 && strpos($PHP_SELF, "password_forgotten.php") == 0)
    {
    if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
    }
    }
    Just change the filenames to the ones you want to let them access - job done!

    Regards,
    pgmarshall
    _______________________________

  5. #5
    rc2user
    Guest


    Default Re: Hide site to all but registered customers (wholesale site)

    Great, thanks. I did do a search of both the forum and oscommerce contributions before posting but didn't find a solution.

Similar Threads

  1. Site Map MS2-2.2
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-23-2009, 02:00 AM
  2. Hide products from groups of customers
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-25-2008, 04:11 AM
  3. Site Map MS2-2.2
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-19-2008, 04:43 AM
  4. Show both Full Retail AND wholesale pricing to whole sale customers?
    By Wretched 6.0 in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 04-19-2007, 07:13 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •