Change directory of images

  • Posts: 427
  • Thank you received: 19
7 years 9 months ago #262341

-- 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.

Last edit: 7 years 9 months ago by neo191987. Reason: Found a file where change directory

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #262343

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 7 years 9 months ago by nicolas.
The following user(s) said Thank You: neo191987

Please Log in or Create an account to join the conversation.

  • Posts: 427
  • Thank you received: 19
7 years 9 months ago #262398

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.

  • Posts: 235
  • Thank you received: 4
7 years 2 months ago #277280

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

Please Log in or Create an account to join the conversation.

  • Posts: 427
  • Thank you received: 19
7 years 2 months ago #277335

Backend or frontend? Which folder do you want to lead to try to help with the code?

Last edit: 7 years 2 months ago by neo191987.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #277303

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.


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum