C
C
Chimaira2017-12-12 12:09:47
HTML
Chimaira, 2017-12-12 12:09:47

Images in Open Cart subcategories are not loading. Where to fix?

Good afternoon.
After we dragged the site from the test domain and connected the SSL certificate to the site, we found that some of the images in the subcategories were no longer uploaded correctly to the site.
All images are loaded in the site.tld/image/... folder, as per instructions from both config.php:

define('DIR_IMAGE', '/var/www/www-root/data/www/site.tld/image/');

In the main categories of the site, everything works correctly, the pictures are loaded with the code from there.
But on the pages of subcategories of a site like site.tld/category/subcategory or site.tld/category/subcategory/sub-subcategory, all the pictures on this page (not only goods) fall off.
5a2f9c78f3b71374076614.png
Can anyone come across? Know where and how to treat?
There is an assumption that this is due to the fact that there is no slash in the image addresses before the image folder:
5a2f9cc45dece357341101.png
But with the same code in the main categories, images are uploaded correctly...
opencart Version 2.2.0.0 (rs.1)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Chimaira, 2017-12-12
@Chimaira

Solution:
Added the following code to /catalog/view/theme/blastbeat/template/common/header.tpl after the title:
Pictures are working.

V
Vladislav Lyskov, 2017-12-12
@Vlatqa

modules/extensions -> modifiers -> clear cache and refresh cache (2 icons top right)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question