How to change the folder for images

11.09.2025 11:25
#1
mazurik
Joomshopping forum user no avatar
Name: mazurik
20.12.2011
Posts: 43
Quote
[Resolved] How to change the folder for images

Good afternoon. I need to change the default folder for images:
currently: site/components/com_jshopping/files/img_products
required: site/products

As I understand it, these settings are located in the file /components/com_jshopping/config/default_config.php.

I am creating a file called user_config.php in this folder. How do I correctly specify the path to the new folder in it? I haven't been able to get anything to work: the files either don't load or they load but are not displayed.

Please, help me!

p.s. And by the way, it's strange that the developers didn't add this option to the settings. It would be convenient to be able to specify the folder for images in the admin panel. This folder can sometimes be very large. I don't think it's right to store a large number of images in the Components folder.

---------------------------------------------------

Добрый день. Требуется сменить дефолтную папку для изображений:
сейчас: сайт/components/com_jshopping/files/img_products
нужно: сайт/products

Как я понял, настройки эти расположены в файле /components/com_jshopping/config/default_config.php.
Создаю в этой папке файл user_config.php. Как в нем правильно прописать путь до новой папки? У меня не получилось ничего: файлы или не загружаются, или загружаются но не отображаются.

И кстати странно, что в разработчики не добавили эту опцию в настройки. Было бы удобно иметь возможность в админке указывать папку для изображений. Эта папка порой бывает очень большой. Не думаю, что хранить большое количество изображений в папке Компоненты это правильно.


Joomla: 5.3.3
JoomShopping: 5.8.1
PHP: 8.3
MySQL: 8

Last change: 11.09.2025 11:54
 
11.09.2025 11:40
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28106
Quote
Aw: How to change the folder for images

$config->image_product_live_path = Uri::root()."products";
$config->image_product_path = JPATH_ROOT."/products";

 
11.09.2025 11:53
#3
mazurik
Joomshopping forum user no avatar
Name: mazurik
20.12.2011
Posts: 43
Quote
Aw: How to change the folder for images

Thank you very much!

Огромное спасибо!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.