System keys
When using the parser, you can use special additional predefined keys in HTML templates, which are enclosed in curly brackets:
Key name | Description | Example |
{PATH} | Path to HTML templates, taking into account the current template group. This variable is convenient to use in PHP scripts of store pages for addressing style files, images, etc. This variable is also specified when placing images (and other elements of store design), |
|
{CHARSET} | Store encoding. Substitutes the value of the CHARSET constant. Convenient to use in the HTML template of the page. | <meta http-equiv="Content-Type" content="text/html; charset={CHARSET}"> |
{SCRIPT_VERSION}, {SCRIPT_BUILD} | Current version and build of Melbis Shop software | 6.3.0, 70 |
{PHPSESSID} | PHP session ID. If you are developing a store using JavaScripts, there may be cases of programmatic transition to a specific page, in which case (if cookies are disabled in the browser) it is necessary to save the PHP session ID. | document.location='/backet.php?PHPSESSID={PHPSESSID}'; |
{BUILD} | The number of the current store build. It is defined by the developer in the $gBuild variable in the melbis_inc.php library. Many browsers cache downloaded JS and CSS files. To prevent users from suffering from this, you can change the $gBuild variable and thus force these files to be updated when you deem it necessary. | <link href="{PATH}/start.css?{BUILD}" rel="stylesheet" type="text/css"> |
{LASTMODIFY} | The time of the last page modification. Calculated depending on the called PHP scripts of the modules, which indicate from which tables they take data. Accordingly, the latest time of table modification will be the time of page generation. | Tue, 25 Jun 2019 12:55:44 GMT |
{MELBIS_COPY} | Melbis Shop Software Copyright. Minimum copyright that must be present on the store page according to the license agreement. | Powered by Melbis Shop |
{MELBIS: ... } | Calling a module's PHP script (see more details in module scripts ). | {MELBIS:melbis_store_card([ID])} |