rlaghdejr Posted September 22, 2015 Share Posted September 22, 2015 Hi everyone, Hope your summer/winter is not too hot/cold for you. Since we have multiple prestashops, we would like to check the stats data of each shop on one page. I thought changing Db.php and AdminStatsController.php would do the trick: Add public static function getInstanceFromOutside($master = true, $_DB_SERVER_, $_DB_USER_, $_DB_PASSWD_, $_DB_NAME_) to Db.php, and call it instead of public static function getInstance($master = true) in AdminStatsController.php . I changed the original files, put a copy of each into designated override folders, and flushed the cache but nothing seems to be changed. Build the whole thing from scratch would work, but I prefer making good use of what is already implemented in the Prestashop 1.6 - Admin Stats / Admin Dashboard, for instance. Any working solutions / better approaches to this? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now