shadowfox Posted January 24, 2005 Posted January 24, 2005 I just started working on a site that already had OSC installed. The owner wants guests to be able to view the categories but not the prices or buy buttons, once the visitor clicks to view a product description they are forced to login. The site is set up to be a wholesale site. Right now the site requires that users login to see anything, including the categories. I dont know how this was set up or if any contributions were used, if someone could help point me in the right direction as far as files, code, and permissions that would be great. I can post code from certain files if it would help show the problem, I just dont know why guests are being locked out. Once I fix that, I can possibly use this contribution: http://www.oscommerce.com/community/contri...arch,guest+view Would that correct achieve the desired result? thanks for your help. -SF
Guest Posted January 24, 2005 Posted January 24, 2005 Yes the contribution you suggested is good for showing everything, but in place of buy now buttons it has prices for logged in users only. You can see it in action at a site im putting together. www.ableframing.co.uk/index.php As for the existing problem, sounds like its something that has been modified on index.php do a code compare using beyond compare or whatever you prefer between the default and the installed. Alternatively just re-upload the entire of oscommerce and start again from scratch, but use the same database. Backup configuration.php and database_tables.php so they are ready to be used. Try it in a sub directory first too ;) If there are a few modifications already made, then probably best not going down this road. HTH
shadowfox Posted January 25, 2005 Author Posted January 25, 2005 I did what you said, but the guy who previously modified the code, he really left me some work. He basically mashed the login page and the index page together, and created a monster. I tried to revert to a default start page, however the links to the categories still will not let you view them if you are not logged in. What module and or code could be causing that? I have checked in categories and the column_left.php and have found nothing like: " if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));" which is the code I am currently using as the basis for causing the problem. Any ideas would be extremely helpful. thanks -SF
RyanSmith Posted January 25, 2005 Posted January 25, 2005 I did what you said, but the guy who previously modified the code, he really left me some work. He basically mashed the login page and the index page together, and created a monster. I tried to revert to a default start page, however the links to the categories still will not let you view them if you are not logged in. What module and or code could be causing that? I have checked in categories and the column_left.php and have found nothing like: " if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));" which is the code I am currently using as the basis for causing the problem. Any ideas would be extremely helpful. thanks -SF <{POST_SNAPBACK}> osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
RyanSmith Posted January 25, 2005 Posted January 25, 2005 I did what you said, but the guy who previously modified the code, he really left me some work. He basically mashed the login page and the index page together, and created a monster. I tried to revert to a default start page, however the links to the categories still will not let you view them if you are not logged in. What module and or code could be causing that? I have checked in categories and the column_left.php and have found nothing like: " if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));" which is the code I am currently using as the basis for causing the problem. Any ideas would be extremely helpful. thanks -SF <{POST_SNAPBACK}> I would do a global search on all the files for: tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));" And then if the page is one that you want people to be able to see without logging on comment it out and leave a marker by it like your initials like //nthcs - Ryan Smith - January 24, 2005 // - Editied to remove login redirect // tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));" then you can easily fine where you made your changes and get it working right. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.