stephen89 Posted June 21, 2011 Share Posted June 21, 2011 Hey all, Following the advice I got in http://www.oscommerce.com/forums/topic/376064-private-shop-231/ I started blocking people without accounts from accessing anything except login.php I also blocked create_account because the person that wants this site doesn't want anybody to be able to make accounts. They want to be able to do that from the admin in the back and assign people accounts. I figured this should be easy enough, Just copy over the create_account from the front to the back and add a new create account tool to the backend. I went to work by adding the nessecary information to admin/includes/filenames.php I added the link to the copy of create_account.php in the tools box. But when I load into admin/create_account.php I get this Fatal error: Call to a member function set_snapshot() on a non-object in /home/colorway/public_html/testioc/catalog/admin/create_account.php on line 17 . I guess I thought wrong about how simple it would be to make an account creation page on the backend of the admin. Or maybe I missed a simple step. Can anybody help me out here? Thank You, Stephen Link to comment Share on other sites More sharing options...
burt Posted June 21, 2011 Share Posted June 21, 2011 You have the right idea, but it would take quite a bit more work than a simple copy of the create_account from the shop to the admin. Off the top of my head; you'd also need to transfer the included files. and the language definitions the messagestack is different in the admin as compared to the shop the form actions also Interesting project for a beginner, it'll plunge you into the deep-end of osCommerce quite quickly if you were to attempt to write this. Link to comment Share on other sites More sharing options...
stephen89 Posted June 21, 2011 Author Share Posted June 21, 2011 Yeah, I did all the language definitions. I have been messing with it still. If anybody could point out obvious differences it might speed things along. But I suppose this means I will just keep chopping at the code for now until I get some progress. Thank you for the heads up on form actions and message stack differences. Link to comment Share on other sites More sharing options...
stephen89 Posted June 21, 2011 Author Share Posted June 21, 2011 Sorry, I can't find a way to edit my post. Is there somewhere I can read the differences between the messagestack and form actions between admin and shop. I would really like to try this if not for the shop I am working on but just so I can learn more. Link to comment Share on other sites More sharing options...
burt Posted June 21, 2011 Share Posted June 21, 2011 Compare the form action from the shop to the form action in the admin. Link to comment Share on other sites More sharing options...
stephen89 Posted June 22, 2011 Author Share Posted June 22, 2011 So the only 2 things I can't get to work so I can test everything else is make the country drop-down menu to work. and get the submit button to work. the submit button duplicates the link. for example <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'person', null, 'primary'); ?></span> </div> It will bring me to site/catalog/admin/http://site/catalog/admin/create_account.php?action=process&firstname=&lastname=&email_address=&street_address=&postcode=&city= This has me pretty confused. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.