- Posts: 431
- Thank you received: 19
Change directory of images
9 years 7 months ago - 9 years 7 months ago #262341
by neo191987
Change directory of images was created by neo191987
-- HikaShop version -- : 3.0.0
Hi how to change the directory of /media/com_hikashop/images on another of my choice. My goal is to change the buttons in Hikashop and Hikamarket without changing image in the back - only in the front.
Hi how to change the directory of /media/com_hikashop/images on another of my choice. My goal is to change the buttons in Hikashop and Hikamarket without changing image in the back - only in the front.
Last edit: 9 years 7 months ago by neo191987. Reason: Found a file where change directory
Please Log in or Create an account to join the conversation.
9 years 7 months ago - 9 years 7 months ago #262343
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Change directory of images
Hi,
Unless you edit a core file ; you can't.
The folder is stored in a PHP constant defined in the component helper: administrator/components/com_hikashop/helpers/helper.php
Regards,
Unless you edit a core file ; you can't.
The folder is stored in a PHP constant defined in the component helper: administrator/components/com_hikashop/helpers/helper.php
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 9 years 7 months ago by nicolas.
The following user(s) said Thank You: neo191987
Please Log in or Create an account to join the conversation.
9 years 7 months ago #262398
by neo191987
Replied by neo191987 on topic Change directory of images
Thanks for the reply. Yesterday I looked the whole code while I find him. It became perfect.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 235
- Thank you received: 4
9 years 1 month ago #277280
by janvankuijk
Replied by janvankuijk on topic Change directory of images
I want to change the images folder from /images/com_hikashop/upload/ into /media/com_hikashop/upload/.
How to do so?
This is row 3883 to 3902 now. If I change /images/ into /media/ nothing happened.
if($app->isAdmin()) {
define('HIKASHOP_CONTROLLER', HIKASHOP_BACK.'controllers'.DS);
define('HIKASHOP_IMAGES', '../media/'.HIKASHOP_COMPONENT.'/images/');
define('HIKASHOP_CSS', '../media/'.HIKASHOP_COMPONENT.'/css/');
define('HIKASHOP_JS', '../media/'.HIKASHOP_COMPONENT.'/js/');
$css_type = 'backend';
$doc->addScript(HIKASHOP_JS.'hikashop.js?v='.HIKASHOP_RESSOURCE_VERSION);
$doc->addStyleSheet(HIKASHOP_CSS.'hikashop.css?v='.HIKASHOP_RESSOURCE_VERSION);
$doc->addStyleSheet(HIKASHOP_CSS.'menu.css?v='.HIKASHOP_RESSOURCE_VERSION);
} else {
define('HIKASHOP_CONTROLLER',HIKASHOP_FRONT.'controllers'.DS);
define('HIKASHOP_IMAGES',JURI::base(true).'/media/'.HIKASHOP_COMPONENT.'/images/');
define('HIKASHOP_CSS',JURI::base(true).'/media/'.HIKASHOP_COMPONENT.'/css/');
define('HIKASHOP_JS',JURI::base(true).'/media/'.HIKASHOP_COMPONENT.'/js/');
$css_type = 'frontend';
$doc->addScript(HIKASHOP_JS.'hikashop.js?v='.HIKASHOP_RESSOURCE_VERSION);
$doc->addStyleSheet(HIKASHOP_CSS.'hikashop.css?v='.HIKASHOP_RESSOURCE_VERSION);
}
Regards
Jan
How to do so?
This is row 3883 to 3902 now. If I change /images/ into /media/ nothing happened.
if($app->isAdmin()) {
define('HIKASHOP_CONTROLLER', HIKASHOP_BACK.'controllers'.DS);
define('HIKASHOP_IMAGES', '../media/'.HIKASHOP_COMPONENT.'/images/');
define('HIKASHOP_CSS', '../media/'.HIKASHOP_COMPONENT.'/css/');
define('HIKASHOP_JS', '../media/'.HIKASHOP_COMPONENT.'/js/');
$css_type = 'backend';
$doc->addScript(HIKASHOP_JS.'hikashop.js?v='.HIKASHOP_RESSOURCE_VERSION);
$doc->addStyleSheet(HIKASHOP_CSS.'hikashop.css?v='.HIKASHOP_RESSOURCE_VERSION);
$doc->addStyleSheet(HIKASHOP_CSS.'menu.css?v='.HIKASHOP_RESSOURCE_VERSION);
} else {
define('HIKASHOP_CONTROLLER',HIKASHOP_FRONT.'controllers'.DS);
define('HIKASHOP_IMAGES',JURI::base(true).'/media/'.HIKASHOP_COMPONENT.'/images/');
define('HIKASHOP_CSS',JURI::base(true).'/media/'.HIKASHOP_COMPONENT.'/css/');
define('HIKASHOP_JS',JURI::base(true).'/media/'.HIKASHOP_COMPONENT.'/js/');
$css_type = 'frontend';
$doc->addScript(HIKASHOP_JS.'hikashop.js?v='.HIKASHOP_RESSOURCE_VERSION);
$doc->addStyleSheet(HIKASHOP_CSS.'hikashop.css?v='.HIKASHOP_RESSOURCE_VERSION);
}
Regards
Jan
Please Log in or Create an account to join the conversation.
9 years 1 month ago - 9 years 1 month ago #277335
by neo191987
Replied by neo191987 on topic Change directory of images
Backend or frontend? Which folder do you want to lead to try to help with the code?
Last edit: 9 years 1 month ago by neo191987.
Please Log in or Create an account to join the conversation.
9 years 1 month ago #277303
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Change directory of images
Hmmmm no
Please understand that your request is totally different that the original question of that thread.
You can settings in HikaShop for the upload folder :
www.hikashop.com/support/documentation/5...nfig.html#main_files
And if you have any further question ; please open a new thread and please do not continue in that thread since your question is not related.
Please understand that your request is totally different that the original question of that thread.
You can settings in HikaShop for the upload folder :
www.hikashop.com/support/documentation/5...nfig.html#main_files
And if you have any further question ; please open a new thread and please do not continue in that thread since your question is not related.
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.187 seconds