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 !...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi all, Is there a way to hide all items from the public (non-registered members)? Many thanks in advance ! |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| 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 {
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| 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
| |||
| |||
| For those of you who are interested, found a great contrib over at the osCommerce site: http://www.oscommerce.com/community/...l/search,login |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |