Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subdirectory 'catalog' in 'image' directory is hard coded #3618

Closed
nmpetkov opened this issue Nov 11, 2015 · 1 comment
Closed

Subdirectory 'catalog' in 'image' directory is hard coded #3618

nmpetkov opened this issue Nov 11, 2015 · 1 comment

Comments

@nmpetkov
Copy link
Contributor

In order to be able to make multi-site installation, we need to specify different directory for uploaded images (I mean not multi store in one database, but multi-sites with one code base and different databases and image directories). Currently it is not possible with constant DIR_IMAGE (if changed, then images are not visible from http). Proper directory to be configurable is "catalog" subdirectory, but it is currently hard coded in:
https://github.com/opencart/opencart/blob/master/upload/admin/controller/common/filemanager.php
with several statements like:
DIR_IMAGE . 'catalog/'
and
DIR_IMAGE . 'catalog'

One possible solution could be to add a constant next to DIR_IMAGE in config.php, for example:
define('IMAGESUBDIR_CATALOG', 'catalog');

If this is acceptable solution, I can make PR for this, otherwise please advice how to proceed.

@danielkerr
Copy link
Member

so your building a multi vendor mod where clients have their own login in the admin. ask in the forums not here~! this is for development of opencart script and not help you build a site for clients!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants