Post by codywood » Wed Apr 15, 2015 10:58 am

in OpenCart 2.0 can the default 'image' folder be changed to another folder with a different name but in the same location? Is it as simple as changing the 'image' folder's name in the two config.php files (in root/config.php and /admin/config.php)?

New member

Posts

Joined
Mon Sep 15, 2014 10:42 am

Post by viethemes » Wed Apr 15, 2015 11:35 pm

You can follow this steps below to do that
1. Rename the image folder, for example newimage
2. Edit two files config.php and admin/config.php, find

Code: Select all

define('DIR_IMAGE', '{path_to_your_root_folder}/image/');
and replace with new name

Code: Select all

define('DIR_IMAGE', '{path_to_your_root_folder}/newimage/');
3. Edit file catalog\model\tool\image.php,
find

Code: Select all

return $this->config->get('config_ssl') . 'image/' . $new_image;
and replace with

Code: Select all

return $this->config->get('config_ssl') . 'newimage/' . $new_image;
find

Code: Select all

return $this->config->get('config_url') . 'image/' . $new_image;
and replace with

Code: Select all

return $this->config->get('config_url') . 'newimage/' . $new_image;

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by codywood » Fri Apr 17, 2015 5:58 am

Thanks but this does not seem to work. Something must be missing.

New member

Posts

Joined
Mon Sep 15, 2014 10:42 am

Post by viethemes » Fri Apr 17, 2015 11:35 pm

Is there a error with that?

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by hrm143 » Wed Aug 24, 2016 12:40 am

viethemes wrote:Is there a error with that?
am facing the same errors...no image found error

Newbie

Posts

Joined
Sun Jun 01, 2014 3:16 am
Who is online

Users browsing this forum: No registered users and 321 guests