osCmax v2.5 User Manual
Results 1 to 4 of 4

Items viewable to registered memebers only?

This is a discussion on Items viewable to registered memebers only? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi all, Is there a way to hide all items from the public (non-registered members)? Many thanks in advance !...

      
  1. #1
    New Member
    Join Date
    Sep 2005
    Posts
    13
    Rep Power
    0


    Default Items viewable to registered memebers only?

    Hi all,

    Is there a way to hide all items from the public (non-registered members)?

    Many thanks in advance !

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: Items viewable to registered memebers only?

    You would have to modify the code. It can be done without too much difficulty. It would redirect non-logged in people to the login page. You would need to add something like:

    Code:
     if (!tep_session_is_registered('customer_id')) {
    
       $navigation->set_snapshot();
    
       tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
    
     } else {
    You would add this to your index.php or main_page.tpl.php. I have not tested this so it may require other modifications as well, but you get the idea...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Sep 2005
    Posts
    13
    Rep Power
    0


    Default RE: Items viewable to registered memebers only?

    Hi Michael,

    Thanks much for your help, good to know that it is possible.

    However, would you mind to let me know where exactly in index.php I should add this? I'm not familiar with PHP... Thanks !

  4. #4
    New Member
    Join Date
    Sep 2005
    Posts
    13
    Rep Power
    0


    Default RE: Items viewable to registered memebers only?

    For those of you who are interested, found a great contrib over at the osCommerce site:

    http://www.oscommerce.com/community/...l/search,login

Similar Threads

  1. Hiding the price untill registered
    By shehper in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 02-16-2005, 07:24 AM
  2. Can't add items
    By ksb in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 01-14-2005, 04:19 PM
  3. Import Items
    By kolamon in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 12-10-2004, 12:41 AM
  4. tricky question -> Access to only registered users ?
    By twinklep in forum osCommerce 2.2 Modification Help
    Replies: 6
    Last Post: 09-19-2004, 04:09 AM
  5. Cannot add items to cart
    By futuretek in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 01-08-2004, 05:48 PM

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
  •