Received an error while trying to accomplish OpenCart theme customization? We can help you in fixing it.
Errors while customizing the OpenCart theme occurs due to improper caching or incorrect database settings.
At Bobcares, we often receive requests from our customers to perform theme customization in OpenCart as part of our Server Management Services.
Today, our article describes how our Support Engineers do OpenCart theme customization and fix its related errors.
How we accomplish OpenCart theme customization?
It is possible to customize the default theme directly from the Design section of the admin panel. Also, many store owners set up a theme for improving the design of their stores.
Luckily, the new Theme Editor in OpenCart gives direct access to template files. Here’s how we customize the theme.
1. Initially, we open the OpenCart admin and go to Design > Theme Editor.
2. Then, we select the store that we wish to customize from Choose the store.
3. And, we select the template file that we wish to customize. For example, we select the store to Default and choose the product template.
Here, the product template has .twig files, we select the product.twig file to edit the Product pages in OpenCart store.
4. At last, we make the necessary changes and click the Save button.
Common problems after theme customization
From our experience in managing servers, we’ve seen customers facing different kinds of problems while customizing the theme.
Now, let’s see how our Support Team solve a few common errors.
Bad database settings in Opencart
Recently, one of our customers contacted us with a problem while setting up a custom theme in OC Version 3.0.2. He was getting an error like
Get back an Error "Error: A theme has not been assigned to this store!".
By investigating, our Support Engineers found that theme status was disabled in the database. Therefore, we enabled it by inserting a code in the database configuration file.
setting (code, `key`, value, serialized) values ('setting', 'theme_THEMENAME_status', 1, 0);
This is how we fixed the problem
Improper caching
One of our clients made some changes in Twig template, common/header.twig, using Theme editor in OC 3. But, then it didn’t work. And, all template was reset to the default value.
On checking, our Support Engineers fount that the problem was related to improper caching. So, we took the following steps to solve the problem.
1. We login to OpenCart dashboard, use the blue icon on the top-right end side to clear all caches.
2. Then we go to extensions >> modifications >> hit the refresh button on the top-right end side.
Finally, we fixed this error.
[Need assistance to do theme customization? We’re going to help you]
Conclusion
In short, many customers experience errors while customizing the OpenCart theme due to improper caching and bad database settings. Today, we saw how our Support Engineers performed theme customization in OpenCart and fixed the related errors.
0 Comments