To disable the template compilation feature in CS-Cart, you can follow these steps:
Disabling Template Compilation in CS-Cart
- Access CS-Cart Admin Panel:
- Log in to your CS-Cart admin panel.
2. Navigate to the Design Section:
- Go to
Design
>Templates
.
3. Disable Compilation:
- In the
Templates
section, look for theSettings
orOptions
button, which may be located in the top right corner. - Find the option related to template compilation (usually named something like “Recompile templates if the templates files were modified”).
- Uncheck this option to disable automatic template compilation.
4. Save Changes:
- Click on the
Save
button to apply the changes.
Manual Configuration via Config File
If you prefer or need to manually disable compilation via the configuration file, follow these steps:
- Edit the Configuration File:
- Open your CS-Cart installation directory.
- Locate and open the
config.local.php
file for editing. This file is typically located in the root directory of your CS-Cart installation.
2. Modify Compilation Settings:
- Look for the setting related to template compilation. Add or modify the following line:
php $config['tweaks']['recompile_templates'] = false;
3. Save and Close:
- Save the changes to
config.local.php
and close the file.
Clearing Cache
After disabling the template compilation, it’s a good practice to clear the CS-Cart cache to ensure the changes take effect properly.
- Clear Cache via Admin Panel:
- Go to
Administration
>Storage
>Clear cache
.
2. Clear Cache Manually:
- Alternatively, you can clear the cache manually by deleting the contents of the
var/cache
directory within your CS-Cart installation directory.
Summary
Disabling template compilation in CS-Cart can be done via the admin panel or by manually editing the config.local.php
file. Remember to clear the cache after making these changes to ensure they take effect. This can help in development environments where you want to prevent CS-Cart from recompiling templates automatically after every change.