osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 !...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-12-2006, 09:12 PM
New Member
 
Join Date: Sep 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
shirster
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 !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-13-2006, 07:55 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,534
Thanks: 76
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-13-2006, 10:39 PM
New Member
 
Join Date: Sep 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
shirster
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 !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-19-2006, 11:13 AM
New Member
 
Join Date: Sep 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
shirster
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 05:18 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax