In the VirtueMart configuration Site tab, there is a Configuration link below the theme selection box. When you click the Configuration link, the Theme Settings page will come up.
We have seen this page before in Chapter 2, The VirtueMart Default Theme, when we talked about the theme settings. When you save the settings, the data will be stored in the file theme.config.php
, the content of which is shown in the following screenshot:
This is basically a text file (other than a section of standard comment for any VirtueMart file) with each setting on one line. The name of the setting and its values are separated by the symbol =
. There is nothing special about this file. You can change the text file manually and the new settings will take effect after you save and upload it back to the server.
How does VirtueMart know what settings are available for the theme and is it a drop-down or textbox? All the secrets lie in the file theme.xml
. As the file extension suggests...