OpenCart 3: system cache cleaning, ocmod and twig. I made changes in controller but its not reflecting
Asked Answered
D

2

4

I want to change something related to product attributes in the product details page: /index.php?route=product/product&product_id=100

So I changed \catalog\controller\product\product.php file and saved it.

but it's not reflecting my changes even I removed the cache and refreshed the page but it's not working. Even I removed the whole code in the PHP file. But it's not reflecting my changes

Drakensberg answered 30/4, 2020 at 10:11 Comment(1)
Which OC version? Anyway you should also refresh modifications of the extensions in admin. You didi it?Screenplay
V
3

If you are using OpenCart 3 - it might be ocmod cache or twig cache.

To clear twig cache in your admin dashboard click on the gear button on top right corner, and then clear the Theme cache. enter image description here

To clear ocmod cache in admin panel go to Extensions - Modifications and click reload button in top right corner. enter image description here

Vaclava answered 30/4, 2020 at 13:45 Comment(0)
R
0

Since you are here and your template is not updating, then the cache reset did not work for you. Indeed, this CMS has a problem with this. The only way in the "Dashboard" is to disable the cache in the templates, at the bottom, under the charts.

Then in the left side menu, open the "Design" tab, In the dropdown list, find "Theme Editor"

Disable cache

Disable cache

enter image description here

Choose your store theme

And click on the template to edit

enter image description here

Very important! Make changes to the twig file.

Click the "Save" button!

Next, go to the site - "Ctrl+Shift+R"

Your template has changed! :)

Radiotransparent answered 23/4, 2023 at 23:54 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.