stephen89 Posted June 6, 2011 Share Posted June 6, 2011 I am curious if there is a private shop type contribution for 2.3.1. Where the site brings you to login right in the beginning and you can't see anything until you log in. Thank You, Stephen Link to comment Share on other sites More sharing options...
pdcelec Posted June 6, 2011 Share Posted June 6, 2011 I am curious if there is a private shop type contribution for 2.3.1. Where the site brings you to login right in the beginning and you can't see anything until you log in. Thank You, Stephen This is for RC2.2a but should be easily adapted http://addons.oscommerce.com/info/601 Link to comment Share on other sites More sharing options...
stephen89 Posted June 8, 2011 Author Share Posted June 8, 2011 not exactly what I was looking for. More along the lines of http://addons.oscommerce.com/info/4856 except for 2.3.1, I'm not sure if the code in this needs to be modified, I guess I'll set up a clean osc 2.3.1 later and give it a shot. Link to comment Share on other sites More sharing options...
stephen89 Posted June 9, 2011 Author Share Posted June 9, 2011 Does anybody have any ideas? Or am I just out of luck. Link to comment Share on other sites More sharing options...
stephen89 Posted June 16, 2011 Author Share Posted June 16, 2011 bump, I know this probably died because nobody that saw it has any ideas. But I decided to give it a go anyway. Even if you can't help, Maybe somebody could push me in the right direction. Of course, any help at all would be appreciated. Thank you, Stephen Link to comment Share on other sites More sharing options...
Xpajun Posted June 17, 2011 Share Posted June 17, 2011 Stephen, that is only a few lines addition to your application_top.php - there is no reason why it should not work for 2.3 as well My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
stephen89 Posted June 17, 2011 Author Share Posted June 17, 2011 That is what I figured, but adding it causes my shop to not load at all. Like the page times out. Link to comment Share on other sites More sharing options...
stephen89 Posted June 21, 2011 Author Share Posted June 21, 2011 This is really frustrating. Does anybody have any other ideas. Link to comment Share on other sites More sharing options...
burt Posted June 21, 2011 Share Posted June 21, 2011 Make your own. All you need to do is add this line of code to every file that you want private; if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Except for login.php and create_account.php as customers would need to be able to access these in order to sign up or login. Now, for people who are not signed in, they will always be redirected to login.php. On this page, you might not want any boxes to show. So these would need to be dealt with appropriately - again, the same code applies; Open each box in turn, and find this: $oscTemplate->addBlock($data, $this->group); Change to: if (tep_session_is_registered('customer_id')) $oscTemplate->addBlock($data, $this->group); Completely untested. Give it a go. If it doesn't work, you haven't lost any money. Maybe better than amending each box file, you might like to just turn off the columns, in this case play with the osc_template class file. Same idea, turn off the data of the customer_id session is unregistered. Link to comment Share on other sites More sharing options...
stephen89 Posted June 21, 2011 Author Share Posted June 21, 2011 Interesting, Thank you for the nudge in the right direction. I'll post here how this turns out. Link to comment Share on other sites More sharing options...
stephen89 Posted June 21, 2011 Author Share Posted June 21, 2011 This is exactly the right direction I needed to go to. Now I just have to figure out how to make product_listing redirect when not signed in. But I am sure I can get it now that I have the general idea. Link to comment Share on other sites More sharing options...
seanzcan Posted July 11, 2012 Share Posted July 11, 2012 I have a modification for oscommerce 2.3.1 to make it a private site or shop, full details please visit my blog post: seanzhuang.wordpress.com/2012/05/28/oscommerce-private-site/ sean Link to comment Share on other sites More sharing options...
Guest Posted July 11, 2012 Share Posted July 11, 2012 @@seanzcan If you have an add on to share, you should upload it to this site. Chris Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.