avaness Posted June 14, 2015 Share Posted June 14, 2015 Hello When I insert an Image into CMS editor within a multistore enviroment, PrestaShop is suggesting the URL corresponding the current Admin URL instead of the URL of the active store. This is wrong because I can maintain different stores within same admin. I then have to correct the URL of all inserted media files manually. Does anyone know a bugfix for that?Thanks and best regardsAndré Link to comment Share on other sites More sharing options...
Krystian Podemski Posted June 14, 2015 Share Posted June 14, 2015 (edited) Hello, Open your_admin_folder/filemanager/config/config.php and change this: $upload_dir = Context::getContext()->shop->physical_uri.'img/cms/'; to this: $upload_dir = Context::getContext()->shop->getBaseURI().'img/cms/'; let me know if that helped. Edited June 14, 2015 by Krystian Podemski (see edit history) 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