When selecting an image, for example for a product, using the built-in file manager:
How do I gain access to the entire 'image' directory, instead of just the 'catalog' part? Or even better, how do I gain access to my entire site directory structure?
Using the default file manager within OC 3.0.3.2
How do I gain access to the entire 'image' directory, instead of just the 'catalog' part? Or even better, how do I gain access to my entire site directory structure?
Using the default file manager within OC 3.0.3.2
Last edited by Dutch Pride Code on Mon Jan 30, 2023 2:19 am, edited 1 time in total.
You shouldn't do that through OpenCart, you should do that through your web hosting control panel.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
A third party application is putting images in a separate directory in my site root. I need to assign those images to a product or page within OpenCart. So I pretty much need to do that through OpenCart. I cannot copy all those images to the OC image directory, it takes up twice as much space.paulfeakins wrote: ↑Thu Jan 19, 2023 6:08 pmYou shouldn't do that through OpenCart, you should do that through your web hosting control panel.
Hi!
The images folder (image/catalog) is embedded in the code. You can always edit the code, but you will have to rewrite a lot and this will not do without consequences. I recommend fixing the problem on the side of the application that putting the images.
The images folder (image/catalog) is embedded in the code. You can always edit the code, but you will have to rewrite a lot and this will not do without consequences. I recommend fixing the problem on the side of the application that putting the images.
My FREE extensions in marketplace. [ security | flexibility | speedup ]
Then you need to modify this third party app to put them in the right place and automatically assign them to products. If you can't modify it then you could write a script that does this. It's something we could do.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Many thanks for your feedback (both of you). I'll try and see what can be changed about the application, if anything.
admin\controller\common\filemanager.php
find DIR_IMAGE . 'catalog
change to your third party application image path
Use same path for all your images
find DIR_IMAGE . 'catalog
change to your third party application image path
Use same path for all your images
View all extensions | Request custom work | Pricing | Contact Me
That's so simple! Seems like a great solution. Does this affect anything else that it shouldn't?
I can imagine admin users would have full root access (when changed to a main directory) when editing products, right?
You can change to DIR_IMAGE to access whole image directory.
View all extensions | Request custom work | Pricing | Contact Me
Who is online
Users browsing this forum: Ahmed-E-Shop, Google [Bot] and 61 guests