fierymech Posted September 26, 2012 Share Posted September 26, 2012 Hi, I have installed the latest version of the Prestashop 1.5.0.17. I would like make an admin panel and a front end panel for my clients to see and explore. I want them to make changes logged in at admin panel and see the results in the front end. Once they log out from admin panel, the admin panel and the front end will then be restored back to what it was previously. In prestashop site as well, a similar stuff is done but it uses seperate DB to access the data items for front end and different for Admin panel. But for admin panel, DB is restored back to what it was before. I can make custom coding to get that done by creating temp DB while logged in as admin and restore to initial db once logged out. But I find Prestashop to be very difficult to understand about its working ( i m a newbie ). Also, please guide me to some links (global links) where from I can get some idea regarding both design and development from scratch. Thanx Link to comment Share on other sites More sharing options...
musicmaster Posted September 26, 2012 Share Posted September 26, 2012 Restoring the database would indeed undo most changes. I am not quite sure, but you might also think about restoring the img directory. Things become a bit hairy if your clients start experimenting with new templates and modules. The only sure way to undo that would be copying all files back. But as an alternative you might consider disabling these options in the backoffice - what would require some coding from your side. Link to comment Share on other sites More sharing options...
SuperCharlie Posted September 26, 2012 Share Posted September 26, 2012 I find the most common way this is done with many sites is a cron job is set up which is set for a specific frequency, like every hour, once a day, etc. When the job goes off, it restores all the site files and database. Usually there is a counter somewhere letting the user know "there is 20 minutes left before site reset" or something like that. Link to comment Share on other sites More sharing options...
fierymech Posted October 1, 2012 Author Share Posted October 1, 2012 Strange but it seems that I didn't receive any mails for replies to this post But anyways, thanx for sharing your feedback but I would definitely try what supercharlie has mentioned in his reply. Lets hope to get that job done. Link to comment Share on other sites More sharing options...
Recommended Posts