This is an old revision of the document!
Merk Alt site configuration manual
The core is not contain any settings, all the settings are instance-dependent.
Some settings for merkalt site instance are carried out to a single file settings.inc.php, placed in includes subfolder in root directory. Another instance settings contained in the set of xml files placed in xml subfolder of root directory.
Settings in settings.inc.php are need to be set up depending on site instance purpose and language:
** common site instance settings **
- server-side path (SITE_ABSOLUTE_PATH constant) define the full real path to site location;
- virtual host path (HOST_PATH) define virtual server path (e.g. 'http://merkalt.no'). If site instance is placed in subfolder of root folder (like 'bedrift' or 'idband' on merkalt.no), then correspondent suffix to this constant should be added.
** e-mail settings **
- name of e-mail sender (EMAIL_SENDER constant) define the name which will be shown as author (or origin) of e-mail (e.g. 'Merkalt.no');
- address of e-mail sender (EMAIL_SENDER_ADDR constant) define e-mail address which will be shown as address of author (or origin) (e.g. 'post@merkalt.no');
- subject of customer e-mail (EMAIL_CUSTOMER_SUBJECT constant) define subject string of customer e-mail (e.g. 'Ordrebekreftelse - Merkalt.no');
- e-mail address of webmaster (EMAIL_WM_ADDR constant) define e-mail address of webmaster on which e-mails with orders content will be sent (e.g. 'post@merkalt.no');
- subject of webmaster e-mail (EMAIL_WM_SUBJECT constant) define subject string for webmaster's e-mail (e.g. 'Bestilling - Merkalt.no');
** e-mail language settings ** allows to set up order table appearance in e-mails depending on language, used by site instance
- currency (CURRENCY_NAME constant) define a name of currency used by site instance (e.g. 'Kr.');
- order table header settings: product name (PRODUCT_NAME constant), quantity (PRODUCT_QUANTITY constant), price (PRODUCT_PRICE constant), generated label URL (PRODUCT_URL constant) are the strings, containing the text which will be shown in the columns of header of order table (e.g. 'Produktnavn', 'Ant. sett', 'Pris', 'URL');
- order table footer rows settings: shipping cost row titles (SHIPPING_TEXT and SHIPPING_FREE constants, e.g. 'Fraktkostnad' and 'GRATIS' correspondingly), discount sum row title (DISCOUNT_TEXT constant, e.g. 'Kvantumsrabatt') and grand total title text (TOTAL_TEXT constant, e.g. 'Totalt е betale (ink. mva)').
** discounts **
- discounts are used (USE_DISCOUNTS constant) define using of discounts code and data by site instance; it takes values true or false only.
XML files containing additional settings, depending on language and purpose of site instance:
- discounts.xml include a sequence of amounts thresholds and discounts values;
- bottom_menu.xml contain settings for bottom (small gray) menu items on index (main) page of site;
- menu.xml contain settings for main menu items on index (main) page of site;
- messages.xml contain strings for user notification (error and confirmation messages);
- pages.xml contain title and metatags strings for all site instance pages;
- products.xml contain product names and prices to be shown on main page and in e-mails.
- project_props.xml additional instance settings for using in js processing.
