It is possible to edit source code of the theme files directly from your administration panel in CS-Cart. File editor helps to manage files located in the .../design/themes/theme_name directory.
Note
The file editor is based on Javascript. So, Javascript must be enabled in your web browser.
To edit files:
Note
Pay attention, that the files of the currently used theme are displayed in this section. If you want to edit any other theme, choose it in the Design > Themes section.
This feature makes editing the storefront templates on the fly possible. Choose the desired element right on the storefront (editable ones have icons), click on the desired template and edit its contents in the appeared window. The source code is highlited so that it is very easy to track its structure, and the applied changes are seen just there on the storefront.
Note
Do not forget to switch on the Rebuild cache automatically selector, if you want the modified files to be re-cached and applied changes be seen immediately.
As the example of the File editor usage let’s consider changing the Add to cart section location at the categories page.
This is what we have:
And this is what we will get:
Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.