EKL
EKL

Reputation: 143

Opencart 3.0.2.0 Not Displaying Images

I have installed Opencart 3.0.2.0 in my Linux server. When I open my Store front page, it is not displaying Banner images, Product images, Manufacturer images.

I logged in to Admin panel and tried to upload images for product categories and products and those are successfully uploaded and stored in to /images/cache folder. But in UI that images are not displaying.

enter image description here

Upvotes: 1

Views: 5523

Answers (2)

Anubhav Gupta
Anubhav Gupta

Reputation: 102

Open config.php in root folder and admin folder and search for DIR_IMAGE.

Update image path as below:

define('DIR_IMAGE', '/var/www/html/image/');

hope this helps

Upvotes: 0

Okechukwu Eze
Okechukwu Eze

Reputation: 149

It was a path issue to the DIR_IMAGE constant.

How i got my server default root relative path.

I created a file called path.php and added this code to it echo getcwd();.

I uploaded it to the root of my server online and this gave me my online relative path

accessing http//{domain}/path.php displays my relative path for me which I now used in my config.php file.

That was how I solve it right now.

Upvotes: 4

Related Questions