Skip to content

Admin Settings & Configuration ​

Flow ID: AD-13 Module(s): settings Complexity: Medium Last Updated: 2026-11-16 — 4.130.0 resync: customer-grade registry rows corrected (label vs numeric threshold) and the numeric validation of the thresholds noted (#1031); previous, 2026-10-19 — 4.128.0 resync: External frontend brands page and the brands storefront-config section (#935), reCAPTCHA v3 secret validation bound to the controller, Adv_settings.php citations re-based; previous, 2026-10-13 — 4.127.0 resync: Customer notifications panel (push, per-event e-mail/push, cap, quiet hours, retention; #559), Adv_settings.php citations re-based; previous, 2026-10-02 — 4.125.0 resync: Viva Wallet merchant-credential registration guard noted; previous, 2026-09-29

Business Overview ​

All platform configuration is stored in a database-backed registry (registry table) with a group/key/value/language structure. The Registry library provides get/set/delete with PSCache caching, encryption for secrets via the CI Encryption library, method chaining, and pipe-delimited array storage. Five settings controllers manage 50+ integration providers across 20+ admin pages, organized into the ecommercen/settings/ HMVC module.

The settings system is the central nervous system of the platform -- almost every feature (payments, feeds, analytics, AI, notifications, SSO, loyalty, search, and third-party integrations) is configured through registry values that are read at runtime.

API Reference ​

Admin Panel Routes ​

All settings routes are session-based admin panel pages (no REST API endpoints).

RouteControllerMethodDescriptionRequired Roles
settingsAdv_settingsindex()General settings: site title, email, company, cart, payments, price trackingADVISABLE, ADMIN
settings/third_party_providersAdv_settingsthird_party_providers()15+ third-party integrationsADVISABLE, ADMIN
settings/googleAdv_settingsgoogle()GA4, reCAPTCHA (hybrid v2+v3), Tag Manager, Recommendations AIADVISABLE, ADMIN
settings/subsystem_settingsAdv_settingssubsystem_settings()Loyalty points configurationADVISABLE, ADMIN
settings/notification_settingsAdv_settingsnotification_settings()Email, SMS, OneSignal push (deprecated), customer push notifications (FCM) and per-order-event e-mail/push settings, see AD-61ADVISABLE, ADMIN, DEVELOPER (SMS and OneSignal fields: ADVISABLE, DEVELOPER only)
settings/payment_settingsAdv_settingspayment_settings()12+ payment provider configsADVISABLE, ADMIN
settings/other_settingsAdv_settingsother_settings()Filters, stock, tags, bundles, displayADVISABLE, ADMIN
settings/xml_feeds_settingsAdv_settingsxml_feeds_settings()Feed tokens and price modifiersADVISABLE only, for reading and saving; other roles get 401 from _remap() (Adv_settings.php:44-57, list :65-73) (#1054)
settings/e-commercen-plusAdv_settingseCommercenPlus()Email campaigns: points, birthday, reviewsADVISABLE, ADMIN
settings/only_advisableAdv_settingsonly_advisable()Developer-only: Matomo, AI, Farmakon, feature flags, and the MCP Connector on/off switch (MCP_CONNECTOR.ENABLED, saved for ADVISABLE sessions only -- see Business Rules)ADVISABLE only, for reading and saving; other roles get 401 from _remap() (Adv_settings.php:44-57, list :65-73) (#1054)
settings/variation_settingsAdv_settingsvariation_settings()Product variation display configADVISABLE, ADMIN
settings/attribute_settingsAdv_settingsattribute_settings()Product attribute configADVISABLE, ADMIN
settings/ai_content_generation_settingsAdv_settingsai_content_generation_settings()OpenAI provider configuration. The page shows the OpenAI API key in a plain-text input, so it is refused to non-Advisable sessions. The 17 AI_CONTENT_GENERATION_PROVIDER_OPEN_AI keys are also saved only for an Advisable session, as a second line (saveAiContentGenerationOpenAiSettings(), Adv_settings.php:101-126, called at :2747) (#1054)ADVISABLE only, for reading and saving; other roles get 401 from _remap() (Adv_settings.php:44-57, list :65-73)
settings/ai_content_generation_promptsAdv_settingsai_content_generation_prompts()AI prompt templates per entityADVISABLE only, for reading and saving; other roles get 401 from _remap() (Adv_settings.php:44-57, list :65-73) (#1054)
settings/mailchimpAdv_settingsmailchimp()Mailchimp API integrationADVISABLE, ADMIN
settings/availableCountriesAdv_settingsavailableCountries()Country enable/disableADVISABLE, ADMIN
settings/videoShowcaseAdv_settingsvideoShowcase()Video showcase settingsADVISABLE, ADMIN
settings/social_authAdvSocialAuthSettingsindex()Google/Facebook OAuth credentialsADVISABLE only
settings/social_linksAdvSocialLinksSettingsindex()Social media profile URLsADVISABLE, ADMIN
settings/plus_settingsAdvGeneralSettingsindex() (route plus/general_settings)eCommercen Plus general settings: smart recommendations, Advisable AI connection, recommendation blocks, related products. The admin menu offers it to ADVISABLE only; the controller admits ADMIN too (AdvGeneralSettings.php:9). 19 of its post fields are written only for an Advisable session (isAdvisableSession(), :20); an ADMIN can still write smart_recommendations_based_on_cart and smart_recommendations_last_seen. getAiValues() returns empty advisableAiAppSecret and advisableAiAdminSecret to any other role, so the decrypted secrets are not in the form HTML (:115-137) (#1054)ADVISABLE, ADMIN
settings/mobile_app_settingsAdv_settingsmobile_app_settings() (:2986)Mobile app minimum-version / store-URL settings, registry group APP_UPDATE (src/Domains/StorefrontConfig/AppUpdate/AppUpdateConfigResolver.php:49); feeds the appUpdate section of GET /rest/storefront-config (#840). Menu: application/config/admin_menu.php:341-347ADVISABLE, DEVELOPER, ADMIN
settings/externalHomeAdv_settingsexternalHome() (:3127)External-frontend home hero config, registry group HOME_EXTERNAL (src/Domains/StorefrontConfig/Home/HomeConfigResolver.php:36); feeds the home section of GET /rest/storefront-config (#841). Menu: application/config/admin_menu.php:348-354ADVISABLE, ADMIN
settings/externalBrandsAdv_settingsexternalBrands() (:3222)External-frontend top brands, registry group BRANDS_EXTERNAL (src/Domains/StorefrontConfig/Brands/BrandsConfigResolver.php:35-36); feeds the brands section of GET /rest/storefront-config (#935). Menu: application/config/admin_menu.php:355-361ADVISABLE, ADMIN (also checked inside the action, :3224-3227)
settings/faviconsAdvFaviconsindex() / save()Favicon upload, generation, manifest. save() calls CachedFragmentReader::forget('files/favicons/view.html') after writing the fragment (ecommercen/settings/controllers/AdvFavicons.php:91-94; failure is logged as a warning, not surfaced); the storefront reads the fragment through CachedFragmentReader::read() (application/views/main.php:10) — see SY-28 Storage AbstractionADVISABLE, ADMIN
settings/email_viewsAdvEmailViewerindex()Email template preview (21 templates)ADVISABLE, ADMIN
settings/email_views/editEmailSubjectsAdvEmailViewereditEmailSubjects()Per-language email subject editorADVISABLE, ADMIN

Code Flow ​

Registry Read/Write Pattern ​

Every settings controller follows the same pattern:

Adv_settings::{page}()
  |-- POST submission check
  |     |-- Run validation rules
  |     |-- If valid:
  |     |     |-- registry->setValue($group, $key, $value, $lang?, $encrypted?)
  |     |     |     |-- Updates in-memory data array
  |     |     |     |-- Calls registry_model->set_regval()
  |     |     |     |     |-- Checks if (reggroup, regkey, lang) exists
  |     |     |     |     |-- If exists: UPDATE regval
  |     |     |     |     |-- If not: INSERT new row
  |     |     |     |     \-- Encrypts value if $encrypted=true via Encryption library
  |     |     |     \-- Returns $this (method chaining)
  |     |     \-- redirect back to same page
  |-- GET display:
  |     |-- registry->value($group, $key, $lang?, $encrypted?)
  |     |     |-- Looks up in-memory array: data[$group][$key][$lang]
  |     |     \-- Decrypts if $encrypted=true
  |     |-- Merge into render array
  |     \-- Load view

Registry Initialization (On Every Request) ​

Registry::__construct()
  |-- Load registry_model + pscache + encryption
  |-- pscache->model('registry_model', 'all', [])
  |     |-- Check file cache for 'registry_model_all_[]'
  |     |-- On miss: registry_model->all() -> SELECT * FROM registry
  |     \-- Cache result
  |-- parseDb($data)
  |     |-- Build nested array: data[$reggroup][$regkey][$lang] = $regval
  |     \-- Empty lang mapped to 'BASE' constant

Registry Live Refresh ​

Registry::live()  [called in Adv_admin_controller constructor]
  |-- pscache->updateCache('registry_model', 'all', [])  [invalidates cache]
  |-- pscache->model('registry_model', 'all', [])  [re-fetches from DB]
  \-- parseDb($data)  [rebuild in-memory array]

Encrypted Values Flow ​

Registry::setValue('SOCIAL_AUTH', 'GOOGLE_CLIENT_SECRET', $value, '', true)
  |-- registry_model->set_regval(..., $encrypted=true)
  |     |-- encryption->encrypt($regval) [CI Encryption library]
  |     \-- Store encrypted ciphertext in DB

Registry::value('SOCIAL_AUTH', 'GOOGLE_CLIENT_SECRET', '', true)
  |-- Read raw (encrypted) value from in-memory array
  \-- encryption->decrypt($value) -> plaintext

Domain Layer ​

Settings HMVC Module (ecommercen/settings/) ​

FileLinesDescription
controllers/Adv_settings.php3,289Main settings controller with 20+ page methods, each handling GET display + POST save. Extends Admin_c.
controllers/AdvSocialAuthSettings.php93Google + Facebook OAuth client credentials. ADVISABLE-only. Encrypted secrets.
controllers/AdvSocialLinksSettings.php52Social media profile URLs (Facebook, Twitter, Instagram, LinkedIn, Pinterest, TikTok).
controllers/AdvFavicons.php110Favicon upload with image generation (multiple sizes) and manifest creation. Uses FaviconImageGenerator + FaviconHtmlGenerator.
controllers/AdvEmailViewer.php252Email template preview (21 entries) with mock data, and per-language subject editor for EMAIL_SUBJECTS registry group. See AD-53 Email Template Viewer for the full code flow, known issues, and subject key catalog.
controllers/AdvMcpConnectorSettings.php130Self-serve MCP connector token management: list, generate, rotate, and revoke tokens carrying seo, analytics and/or content scopes via Advisable\Mcp\Auth\TokenService. Reads the connector's on/off switch through isMcpConnectorEnabled() (disabled notice, and generate/rotate/revoke blocked, while off) but does not own it: the switch is MCP_CONNECTOR.ENABLED on only_advisable.

Notification Settings Field: Return Form Recipient E-mail ​

The notification_settings() route in Adv_settings.php (ecommercen/settings/controllers/Adv_settings.php:1071-1127) exposes a "Return form recipient e-mail" field that is not listed in the API Reference routes table. This field (return_form_recipient_email, ecommercen/settings/controllers/Adv_settings.php:1095) accepts a valid email address, with valid_email validation (ecommercen/settings/controllers/Adv_settings.php:1149-1154, now with a labelled rule and form_error() in the view), and writes to the registry group RETURN_FORM key RECIPIENT_EMAIL (write at ecommercen/settings/controllers/Adv_settings.php:1095; read back for form display at :1120). The view field is rendered at application/views/admin/settings/notification_settings.php:67-79. This setting provides the shop recipient address for product return-form submission emails, and falls back to the EMAIL_CONTACT_FORM SMTP profile admin email when unset (fallback logic in ecommercen/forms/controllers/Adv_forms.php:128-131).

Customer notifications panel (#559). The same page also hosts the customer push-notification settings, saved by saveCustomerNotificationSettings() into registry group NOTIFICATIONS (ecommercen/settings/controllers/Adv_settings.php:1217-1248; view data :1250-1289; markup application/views/admin/settings/notification_settings.php:84-249): the push master switch, daily marketing cap, quiet hours (HH:MM, validated by notificationTimeIsValid(), :1206-1215), test customer ids, device and history retention, and a per-order-event table (customer e-mail on/off, push mode off/with/instead_of_sms, push title and body per language) (validation :1156-1197). The SMS and OneSignal values are written only when canEditNotificationProviders() allows ADVISABLE or DEVELOPER (:1083-1093,1201-1204); other roles reaching the page save only the notification settings. Behaviour of the settings, and the order-email hooks that read the per-event e-mail switch, is documented in SY-35 Push Notifications and AD-61 Push Notification Campaigns.

Registry Library (application/libraries/Registry.php) ​

MethodSignatureDescription
value()value($regGroup, $regKey, $langAbbr='', $encrypted=false)Get single value. Returns null if not found.
setValue()setValue($regGroup, $regKey, $regVal='', $langAbbr='', $encrypted=false)Set/upsert value. Returns $this for chaining.
getGroupAsArray()getGroupAsArray($regGroup, $langAbbr='', $encryptedKeys=[])Get all keys in a group as associative array.
setArray()setArray($regKey, $regGroup, $langAbbr, $regVal=[])Store array as pipe-delimited string.
getArray()getArray($regKey, $regGroup, $langAbbr)Read pipe-delimited string back as array.
delete()delete($regGroup, $regKey, $langAbbr='')Remove a specific value.
live()live()Force cache refresh and re-read from DB. Returns $this.

Registry Model (application/models/Registry_model.php) ​

MethodDescription
all()SELECT * FROM registry (all rows, used for PSCache population)
set_regval($regkey, $reggroup, $lang, $regval, $encrypted)Upsert pattern: check existence, then UPDATE or INSERT. Encrypts if flagged.
delete($regGroup, $regKey, $langAbbr)DELETE matching row

Architecture ​

Registry Groups Inventory ​

The following registry groups are managed across all settings controllers:

GroupSettings PageKey Values
SITEindexTITLE (per-lang), EMAIL_FORM, COMPANY_ADDRESS (per-lang)
ESHOPindex, subsystem, only_advisableSANITIZE_INTERVAL, COMPANY_PHONE, PAYMENTS_ACTIVE, TRANS_COST_LIMIT, LIMIT_ON_PRODUCTS, DEFAULT_CURRENCY, SLUG_TO_GREEKLISH, plus 15+ more
BLOGindexRSSTITLE (per-lang), RSSDESCRIPTION (per-lang)
GLOBALindex, only_advisableADMIN_EMAIL, CDN_URL, STOREFRONT_BASE_URL, LOGO, SITE_MODE
SMSindex, notificationsSMS_LIMIT, IS_ENABLED, SEND_IS_ENABLED, FOR_PAYWAY, PROVIDER
EMAIL_*index (dynamic groups)SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS (encrypted), SMTP_AUTO_SSL_TLS, SENDER_EMAIL, FROM_NAME, ADMIN_EMAIL
EMAILnotificationsSEND_EMAIL_TO_CLIENT_FOR_ADMIN_ORDER, NOTIFICATION_LOW_STOCK, NOTIFICATION_NEW_PRODUCT
EMAIL_SUBJECTSemail subjectsPer-language email subject lines
PRICE_TRACKindexENABLED, ENABLED_GRAPH (written only for an Advisable session, savePriceTrackGraphSetting() Adv_settings.php:89-96, called at :176; #1054), TRACK_DAYS, SHOW_DISCOUNT_ON_VALUE, DISCOUNT_LABEL (per-lang)
SKROUTZthird_partyANALYTICS_KEY, ANALYTICS_IS_ENABLED
BESTPRICEthird_partyANALYTICS_KEY, ANALYTICS_IS_ENABLED
FACEBOOKthird_partyIS_ENABLED, PIXEL_ID
FACEBOOK_CONVERSIONthird_partyENABLED, PIXEL_ID, PIXEL_ACCESS_TOKEN, PIXEL_TESTING_CODE, TIMEOUT, CONNECT_TIMEOUT
CRITEOthird_partyIS_ENABLED, ACCOUNT_ID
AGORAthird_partyIS_ENABLED, API_URL, API_KEY, CATALOG_ID, TEAM_ID, BANNERS_, PIXEL_, DSPL_* (20+ keys)
TABOOLAthird_partyIS_ENABLED, ID
LINKWISEthird_partyIS_ENABLED, PROGRAM_ID
SMARTCARTthird_partyIS_ENABLED, API_URL, API_KEY, DISABLE_PRODUCT_STOCK_CHECK
SHOPFLIXthird_partyIS_ENABLED, IS_PRODUCTION, API_EMAIL, API_KEY
MANAGOthird_partyENABLE_MONITOR_SCRIPT, ENABLE_API, API_BASE_URL, CLIENT_ID, plus 15+ keys
GOOGLEgoogleGA_TRACKING_ID, RECAPTCHA v2/v3 keys (RECAPTCHA_KEY/SECRET, RECAPTCHA_V3_KEY/SECRET encrypted, RECAPTCHA_V3_THRESHOLD), TAG_MANAGER keys, RECOMMENDATIONS keys
POINT_SYSTEMsubsystemIS_ENABLED, ORDER_EDIT_KEEP_PRODUCT_POINTS
ONE_SIGNALnotificationsIS_ENABLED, APP_ID, SAFARI_WEB_ID -- deprecated since #559: nothing sends through OneSignal any more; fields kept for one release, editable only by ADVISABLE and DEVELOPER
NOTIFICATIONSnotificationsPUSH_ENABLED, MARKETING_DAILY_CAP, QUIET_HOURS_START/END, TEST_CUSTOMER_IDS, DEVICE_RETENTION_DAYS, HISTORY_RETENTION_MONTHS, and per order event EMAIL_, PUSH_, PUSH_TITLE_/PUSH_BODY_ (per language) -- see SY-35
PAYPALpaymentsUSERNAME, PASSWORD, SIGNATURE
PAYPAL_ADVANCEDpaymentsCLIENT_ID, CLIENT_SECRET, SANDBOX
ALPHABANKpaymentsVERSION, ID, SSK, SUBMIT
EUROBANKpaymentsMERCHANT_ID, SECRET, URL, USE_INSTALLMENTS, INSTALLMENTS
PIRAEUSBANKpaymentsACQUIRER_ID, MERCHANT_ID, POS_ID, USERNAME, PASSWORD, REQUEST_TYPE, INSTALLMENTS, BNPL, plus more
PIRAEUSBANK_EXTERNALpayments13 keys -- Piraeus POS credentials for the external-frontend channel; written unconditionally
PIRAEUSBANK_GIFTCARDS_EXTERNALpayments13 keys -- Piraeus POS credentials for the gift-cards channel; written only inside the GIFT_CARDS.ENABLED guard
ETHNIKIBANKpaymentsPUBLIC_KEY, PRIVATE_KEY
ETHNIKIBANK_NBGPAYpaymentsAPP_ID, APP_KEY, IS_SANDBOX
ETHNIKIBANK_EEpaymentsDIRECT_API_KEY
VIVAWALLETpaymentsPAYMENT_PARAMETERS, CLIENT_ID, CLIENT_SECRET, plus more
STRIPEpaymentsPUBLIC_KEY, SECRET_KEY, WEBHOOK_KEY
KLARNA_PAYMENTSpaymentsUSERNAME, PASSWORD, API_REGION
IRISpaymentsMERCHANT_ID, SECRET
JCCpaymentsMERCHANT_ID, ACQUIRER_ID, PASSWORD
CARDLINKpaymentsMERCHANT_ID, SHARED_SECRET
PAY_BY_BANKpaymentsMERCHANT_ID, API_KEY, PROVIDER
SOCIAL_AUTHsocial_authGOOGLE_LOGIN_ENABLED, GOOGLE_PROJECT_ID, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET (encrypted), FACEBOOK_LOGIN_ENABLED, FACEBOOK_CLIENT_ID, FACEBOOK_CLIENT_SECRET (encrypted)
SOCIAL_LINKSsocial_linksFACEBOOK, TWITTER, INSTAGRAM, LINKEDIN, PINTEREST, TIKTOK
MATOMOonly_advisableENABLED, SHOW_ADMIN_DASHBOARD, TOKEN (encrypted), SITE_ID (encrypted), SITE_URL, PRODUCT_ID_PREFIX, TIMEOUT, CONNECT_TIMEOUT
ADVISABLE_AIonly_advisableSHOW_ADMIN_DASHBOARD
VIEW_METRICSonly_advisableENABLED, PERIOD, per-object-type ENABLED/PERIOD
MCP_CONNECTORonly_advisableENABLED -- MCP Connector on/off switch, stored as '1'/'0' ((int)(bool), Adv_settings.php:2382); a missing row reads as off. The one key on this page written only for ADVISABLE sessions (guard :2381); read through isMcpConnectorEnabled() (ecommercen/helpers/registry_helper.php:597-624); seeded once by migration 20261002120000_add_mcp_connector_enabled_registry_key.php (#824)
FARMAKONonly_advisableIS_ENABLED, ADDRESS, EXCLUDED_PRODUCT_LIST
BUILDERonly_advisableENABLED
COOKIESonly_advisableENABLED
SUPPLIERonly_advisableENABLED
DATABOXonly_advisableENABLED, TOKEN (encrypted)
MARKETDATAonly_advisableENABLED, MARKETDATA_KEY (encrypted), MARKETDATA_TYPE
EUROPHARMACYonly_advisableENABLED (stored as (int), Adv_settings.php:2426), BASE_URL, USERNAME, PASSWORD (encrypted, :2429)
FLAGGED_CONTENTonly_advisableEVENTS, MAPS, VIDEO
ECOMMERCEN_PLUSeCommercenPlus, only_advisableCUSTOMER_REVIEW_REWARD_ENABLE, CUSTOMER_REVIEW_REWARD, PRODUCT_PAGE_COMBO_ENABLED, AFTER_ADD_TO_CART_RECOMMENDATIONS_ENABLED
EMAIL_FOR_TOTAL_POINTSeCommercenPlusIS_ENABLED, TOTAL_POINTS, INTERVAL, INTERVAL_REPEAT
EMAIL_FOR_BIRTHDAYeCommercenPlusIS_ENABLED, POINTS_TO_ADD, REPEAT
GIFT_CARDSpaymentsENABLED
GIFT_PACKAGINGotherENABLE, COST
OTHERother, only_advisableDEFAULT_FILTER_FRONT, LOW_STOCK_END_OF_LIST, ENABLE_LOGIN_AND_BUY, SHOW_PRODUCT_HITS, plus 20+ feature flags
AFFILIATION_VARIATIONS_GROUPSthird_partyGROUPS_FOR_SIZE, GROUPS_FOR_COLOR
AFFILIATION_ATTRS_GROUPSthird_partyGROUPS_FOR_SIZE, GROUPS_FOR_COLOR
AI_CONTENT_GENERATION_PROVIDER_OPEN_AIai_settingsIS_ENABLED, API_KEY, MODEL, MAX_TOKENS, TEMPERATURE, plus 12+ params
AI_CONTENT_GENERATION_PROMPTSai_promptsDynamic per-entity prompt templates
ATTRIBUTESattribute_settingsDISPLAY_FILTERS_IN_LISTINGS, MERGE_DUPLICATE_VALUES_BY_NAME -- controls attribute filter sidebar visibility and deduplication
EMAIL_NEWSLETTERnotificationsSMTP config (HOST, PORT, USER, PASS encrypted, AUTO_SSL_TLS, SENDER_EMAIL, FROM_NAME, ADMIN_EMAIL) -- dedicated SMTP for newsletter sending
GLAMIthird_partyIS_ENABLED -- Glami marketplace feed toggle
KLARNA_OSMpaymentsENABLED, IS_PRODUCTION, CLIENT_ID -- Klarna On-Site Messaging (financing widgets on PDP + checkout)
MAILCHIMP_LOGGINGmailchimpSMTP config (HOST, PORT, USER, PASS encrypted, AUTO_SSL_TLS, SENDER_EMAIL, FROM_NAME, ADMIN_EMAIL) -- Mailchimp event logging emails
RETURN_FORMnotificationsRECIPIENT_EMAIL -- shop recipient address for product return-form submissions (falls back to EMAIL_CONTACT_FORM admin email)
NEWSLETTERnotificationsDEFAULT_GROUP -- default user group for new subscribers
PAYWAY_ADMINpaymentsdelivery, paid_at_store, bank_transfer -- admin-available payment methods
PAYWAY_EXTERNALpaymentsMETHODS -- curated external-frontend payway pool (delivery, bank_transfer, paid_at_store, vivawallet, eurobank, paybybank)
PAYWAY_GIFT_CARDS_EXTERNALpaymentsMETHODS -- curated external-frontend gift-card payway pool (vivawallet only)
PRODUCT_CART_CUSTOMISATIONSotherENABLED -- cart customization feature toggle
RELATED_RECOMMENDATIONSotherENABLED -- related product recommendations toggle
VIVA_ENABLED_PAYWAYSpaymentsvivawallet_iris, etc. -- active Viva Wallet sub-methods
WIZARD(internal)INITIALWIZARD_COMPLETED_AT -- setup wizard completion marker
APP_UPDATEmobile_app_settingsANDROID_MINIMUM_VERSION, ANDROID_STORE_URL, IOS_MINIMUM_VERSION, IOS_STORE_URL -- mobile-app update gate published as appUpdate on GET /rest/storefront-config (#840; key names from src/Domains/StorefrontConfig/AppUpdate/AppPlatform.php:21,27)
HOME_EXTERNALexternalHomeHERO_SLIDESHOW_GROUP_ID, HERO_SLIDESHOW_LIMIT -- external-frontend home hero published as home on GET /rest/storefront-config (#841; src/Domains/StorefrontConfig/Home/HomeConfigResolver.php:36-38)
BRANDS_EXTERNALexternalBrandsTOP_VENDOR_IDS -- ordered, pipe-joined vendor ids for an external frontend's top-brands row, published as brands on GET /rest/storefront-config (#935; src/Domains/StorefrontConfig/Brands/BrandsConfigResolver.php:35-36)

Caching Architecture ​

                    +-----------+
                    | PSCache   |  (file-based, L2 cache)
                    +-----------+
                         |
  Admin requests:        |           Frontend requests:
  Registry::live()       |           Registry reads from
  forces refresh --------+---------- pre-loaded in-memory array
                         |
                    +-----------+
                    | registry  |  (MySQL table)
                    +-----------+

The entire registry table is loaded once into PSCache, then parsed into an in-memory nested array. Admin controllers call Registry::live() to force a refresh on each admin page load. Frontend controllers rely on the cached version.

Data Model ​

registry Table ​

ColumnTypeDescription
idINT(11) PK AIRecord ID
reggroupVARCHAR(150)Configuration group (e.g., ESHOP, PAYPAL, SITE)
regkeyVARCHAR(150)Configuration key within group
regvalTEXTValue (plaintext or encrypted ciphertext)
langVARCHAR(2)Language abbreviation (empty string for non-localized values)

Indexes: reggroup, regkey, (regkey, lang), (reggroup, regkey, lang) -- the last is a covering index for the upsert pattern.

Storage Patterns ​

PatternExampleStorage
Simple valuesetValue('ESHOP', 'PAYMENTS_ACTIVE', '1')regval = '1', lang = ''
Per-languagesetValue('SITE', 'TITLE', 'My Shop', 'el')regval = 'My Shop', lang = 'EL'
EncryptedsetValue('PAYPAL', 'PASSWORD', $pw, '', true)regval = encrypted_ciphertext, lang = ''
ArraysetArray('PAYWAY', 'METHODS', '', ['cod','card'])regval = 'cod|card', lang = ''

Configuration ​

FileDescription
application/config/auth.phpAuth provider flags, hash type, static users
application/config/email_groups.phpDefines available email group names for SMTP settings
application/config/ai_content_generation_prompts.phpDefines entity/field structure for AI prompt settings
application/config/emailViews.jsonEmail template configuration for the email viewer
ecommercen/helpers/registry_helper.phpHelper functions for registry access outside controllers, including isMcpConnectorEnabled() (the MCP Connector gate, #824)

Environment Variables ​

The registry itself has no direct environment variable dependencies, but many settings pages reference .env values via env() calls for initial/fallback values. The encryption key used for encrypted registry values is configured via the CI Encryption library config.

Client Extension Points ​

  • Settings controllers extend Admin_c -- client repos can override any settings controller by placing a same-named file in application/controllers/.
  • New registry groups can be created at any time by simply calling setValue() with a new group name -- no schema changes needed.
  • Encryption keys are per-installation (from CI config), so encrypted values are not portable between environments.
  • Custom settings pages can be added by creating new controllers in the settings module (in client repos, in application/controllers/), using the same Registry read/write pattern.
  • Registry helper (ecommercen/helpers/registry_helper.php) provides functions for registry access in contexts without controller access.

Business Rules ​

  • Encryption for sensitive fields: API keys, secrets, and passwords use the 5th parameter true on setValue()/value() to encrypt/decrypt via the CI Encryption library. Encrypted values are stored as ciphertext in the DB.
  • reCAPTCHA v3 secret encryption guard: google_recaptcha_v3_secret is validated by a callback_recaptchaV3SecretIsStorable rule (ecommercen/settings/controllers/Adv_settings.php:831, message :834-837) before googlePost() runs (Adv_settings::recaptchaV3SecretIsStorable(), :875-896). It round-trips the submitted value through the CI Encryption library directly and refuses to save -- surfacing settings.admin.google.recaptchaV3Secret.encryptionError next to the field -- if APP_ENCRYPTION_KEY is missing or invalid, instead of silently persisting a secret that cannot be decrypted back. Clearing the field (empty value) is always allowed. google() runs the validation bound to the controller, form_validation->run($this) (:752): MY_Form_validation::run() only rebinds its CI instance when handed an object (application/libraries/MY_Form_validation.php:119-123), so under HMVC an unbound run() looks the callback up on the CI super-object, never finds it, and fails the rule. Before 4.128.0 google() called run() unbound, so every non-empty v3 secret was refused with the encryption error even with a valid key, and the v3 layer could not be switched on from the admin. Every other settings page with a callback_ rule already ran run($this) (:1077, :2991, :3133, :3233).
  • Multi-language support: The lang column separates per-language values. Empty string ('') is mapped to the constant BASE internally. Language abbreviations are auto-uppercased.
  • Role-based access: General settings require ADVISABLE + ADMIN roles. Social auth settings are restricted to ADVISABLE only. Individual keys inside the shared pages can be guarded by role, because a page's constructor admits ADMIN too: the general index() page writes the SMS limit only for ADVISABLE sessions (Adv_settings.php:188-191, rule :292-294), and only_advisable() writes MCP_CONNECTOR.ENABLED only for ADVISABLE sessions (see the MCP Connector switch rule below). The only_advisable, xml_feeds_settings, ai_content_generation_prompts and ai_content_generation_settings pages are Advisable-only for real, on GET and POST: _remap() refuses every other session with 401 before the action runs (Adv_settings.php:44-57, list :65-73, #1054), although the constructor admits ADMIN (:23). The key guard on MCP_CONNECTOR.ENABLED stays as a second line, and the same two-line pattern applies to PRICE_TRACK.ENABLED_GRAPH, the OpenAI keys and the Plus general-settings fields (see their rows above).
  • Array values: Stored as pipe-delimited strings (e.g., val1|val2|val3). Use setArray()/getArray() for transparent serialization.
  • Cache invalidation: Registry::live() invalidates PSCache and re-reads from DB. Called on every admin page load. Frontend reads use the cached version without refresh.
  • Upsert pattern: Registry_model::set_regval() checks if a row exists for (reggroup, regkey, lang) and either UPDATEs or INSERTs. This prevents duplicate entries.
  • No validation on values: Registry stores raw string values. Type casting and validation happen in the controller layer before calling setValue().
  • Logo upload: The index() method handles logo file upload separately via updateLogo() and stores the filename in GLOBAL.LOGO.
  • Storefront base URL (headless deployments): The index() page exposes GLOBAL.STOREFRONT_BASE_URL (POST field global_storefront_base_url), saved and rendered alongside GLOBAL.CDN_URL (ecommercen/settings/controllers/Adv_settings.php: CDN_URL write :104, STOREFRONT_BASE_URL write :105, reads :139-140) with a trim validation rule (:209). An empty value preserves the base_url() fallback in StorefrontUrl, so single-domain deployments are unaffected. The value is consumed at runtime by the storefront_url() helper to build customer-facing email and link bases — see SY-24 Email Dispatch System and docs/guides/storefront-url.md for the headless setup guide.
  • External-frontend payway panels (curated capability pools): The payment_settings page exposes two additional payway selectors introduced for external-frontend consumers (#672 → #679): PAYWAY_EXTERNAL.METHODS (write ecommercen/settings/controllers/Adv_settings.php:1312-1315, render :1512) and PAYWAY_GIFT_CARDS_EXTERNAL.METHODS (write :1324-1327, render :1522). Both filter the POST against a curated pool on save via array_values(array_intersect($post, $pool)). The pools are hand-maintained capability lists, not derived: getExternalPayWays() returns delivery, bank_transfer, paid_at_store, vivawallet, eurobank, paybybank (ecommercen/helpers/eshop_helper.php:375-441; #749 added the last two, scoped by epic #748 -- the helper's docblock records that admission is a product-owner scope decision and that the staging acceptance run #756 is the go-live gate, not the admission gate); getExternalGiftCardPayWays() returns vivawallet only (:450-455). The page's other three payway selections (PAYWAY, PAYWAY_ADMIN, PAYWAY_GIFT_CARDS) stay unfiltered -- deliberate, per the in-code comment at Adv_settings.php:1300-1311.
  • Piraeus per-channel POS credential blocks: Two 13-key credential blocks were added for #674. PIRAEUSBANK_EXTERNAL is written unconditionally on payment_settings save (Adv_settings.php:1373-1385, comment :1368-1372). PIRAEUSBANK_GIFTCARDS_EXTERNAL is written only inside the GIFT_CARDS.ENABLED guard (:1413-1425, comment :1408-1412), because its fields only render when gift cards are enabled -- an unguarded save would wipe stored credentials.
  • Viva Wallet external-channel source code (#729): The payment_settings page exposes VIVAWALLET.EXTERNAL_SOURCE_CODE (write ecommercen/settings/controllers/Adv_settings.php:1464, render :1637, validation :1742) so the external/headless checkout channel can use its own Viva Wallet source code -- each source code carries its own success/failure return URLs registered in the Viva merchant portal, so sharing VIVAWALLET.SOURCE_CODE with the storefront was returning external-channel customers to the rendered storefront instead of the calling application. Read via getVivaWalletExternalSettings() (ecommercen/helpers/registry_helper.php:432-481), which delegates to getVivaWalletMergedSettings() and swaps only source_code -- with no fallback to VIVAWALLET.SOURCE_CODE when unset, so an unconfigured external source code fails closed (no vivawallet adapter registered) rather than silently reusing the storefront one. Consumed by src/Domains/Checkout/Payment/PaymentInitializerFactory.php:155-159. The adapter is likewise not registered over REST when VIVAWALLET.MERCHANT_ID / API_KEY are missing: registerVivaWallet() requires hasMerchantCredentials() (src/Domains/Checkout/Payment/PaymentInitializerFactory.php:169-171, #865); see CF-08 Payment Processing.
  • XML_FEEDS.CUSTOM_PRICE_ENABLED master switch (#592): A new Advisable-only master switch on the only_advisable page, written at Adv_settings.php:2350. An ON→OFF transition resets all 14 per-feed CUSTOM_PRICE_* flags (:2352-2374, flags at :2360-2373) while deliberately preserving the *_MODIFIER percentage values. Read back at :2457; validation rule at :2524. It also gates xml_feeds_settings() at :1997-2005 ($customPriceEnabled at :2002) and :2037-2066, so a save with the switch off no longer wipes modifier values.
  • MCP_CONNECTOR.ENABLED -- MCP Connector on/off switch, guarded by key (#824): The switch that decides whether the mcp/c/<token> endpoint exists (see IN-24 MCP Connector). It is a checkbox panel on the only_advisable page (application/views/admin/settings/only_advisable.php:318-337, POST field mcpConnectorEnabled, lang keys eshop.admin.only_for_advisable.enable_mcp_connector.header / .label), saved at Adv_settings.php:2471-2478 as (int)(bool) (so stored '1'/'0'), then the whole pscache is cleared (:2477) so the change applies at once in every language, rendered back at :2536-2537 with the same truthiness as the gate (so the box shows what is enforced), and validated with a trim rule at :2615. It is guarded twice since #1054: _remap() refuses every non-Advisable session with 401 before only_advisable() runs (Adv_settings.php:44-57, list :65-73), and the write still sits inside allowRole([AUTH_ROLE_ADVISABLE], $this->sessionRoles) (comment :2466-2470) as defence in depth, because Adv_settings::__construct() admits AUTH_ROLE_ADMIN (:23). Should a session without the Advisable role ever reach the action, it does not write the key at all: the stored value, or the absence of a row, stays exactly as it was and an unposted checkbox is never coerced to 0. A missing row reads as off. Like every registry read, the gate sees a change only once the per-language registry cache refreshes (see Caching Architecture): Registry::live() does it on every admin request, so the redirect after a save refreshes the saving admin's language, and the Cronjob controller and several job libraries do too, while the migration's direct INSERT refreshes nothing -- a seeded row is seen after the next admin request or cron run, or when the cache expires (86400 s by default, application/config/cache.php:7). The runtime gate is isMcpConnectorEnabled() (ecommercen/helpers/registry_helper.php:597-624), shared by Mcp::connector() and AdvMcpConnectorSettings. It replaced the APP_MCP_CONNECTOR_ENABLED env var, which is retired: the forward-only migration 20261002120000_add_mcp_connector_enabled_registry_key.php seeds each environment's row once from it (never overwriting an existing row), and a fresh install starts off. The token page's disabled notice (settings.mcp_connector.disabled_notice) now reads "The MCP Connector is disabled. It can be enabled by Advisable."
  • External frontend brands (#935): settings/externalBrands lets the merchant choose an ordered list of brands for an external frontend's top-brands row (the mobile app shows it above its brand list), published as brands.topVendorIds on GET /rest/storefront-config (REST 1.117, application/config/rest_api_versions.php:145). It is the external channel's own setting: it neither reads nor changes shop_vendor.is_promo / shop_vendor.order, which drive the rendered storefront's home brand carousel (Adv_vendors_model::getPromoVendors(), ecommercen/eshop/models/Adv_vendors_model.php:454-468) -- the same channel split as PAYWAY / PAYWAY_EXTERNAL and HOME_EXTERNAL.
    • Page: a two-list picker (crlcu Multiselect; markup application/views/admin/settings/external_brands.php:15-71, initialised at application/views/admin/footer_js.php:4046-4070). The left list holds every brand named in the admin's language (vendors_model->vendorsCombo(false), ecommercen/settings/controllers/Adv_settings.php:3248) minus the chosen ones (:3255), sorted by name in the browser (footer_js.php:4053-4057), with a search box (external_brands.php:20-24, footer_js.php:4058-4060) in which Enter does not submit the form (:4063-4067). The right list is what the section publishes now, in saved order (Adv_settings.php:3250-3252), so a deleted brand drops out of both; a chosen brand with no name in the admin's language is labelled #<id> (:3251). Arrows move brands across and up/down reorder them (external_brands.php:35-43,61-68); there is "move all back" but no "move all right". The left list is not posted (submitAllLeft: false, footer_js.php:4061), which keeps a large brand catalogue under PHP's max_input_vars; the chosen options are pre-selected in the markup (external_brands.php:54), so a save without working JavaScript keeps the list. Option labels are HTML-escaped (:27, :53).
    • Save: the externalBrandsVendorExists callback runs once per posted external_brands_top_vendor_ids[] value (rule Adv_settings.php:3265-3277, callback :3286-3298): an empty value passes, a non-digit or zero is refused, and anything else must be a live shop_vendor row, otherwise settings.admin.externalBrands.notFound is shown. The page then stores BrandsConfigResolver::vendorIds() of the posted list -- posted order, positive integers, no repeats -- with setArray('TOP_VENDOR_IDS', 'BRANDS_EXTERNAL', '', ...) (:3234-3241; key first, group second). The action checks ADVISABLE + ADMIN itself before it reads the post or writes Registry (:3224-3227), in addition to the constructor gate (:23-26).
    • REST section: BrandsConfigResolver::resolve() (src/Domains/StorefrontConfig/Brands/BrandsConfigResolver.php:57-64) reads the key, normalises it with vendorIds() (:73-84: FILTER_VALIDATE_INT with min_range 1, a repeated id keeps its first position), then keeps only ids that are live shop_vendor rows, in saved order, with one IN query that selects only shop_vendor.id (liveVendorIds(), :92-106; skipped for an empty list, :94-97). The check runs on every read, so a brand deleted by any path (admin, REST write API, SQL) drops out. [] means render no row: an unset key, an empty list, malformed entries and all chosen brands deleted all publish [], and a client never substitutes its own list. Whether a brand has anything to sell is not decided here; the client resolves the ids against its own GET /rest/product/vendor?filter[hasSellableProducts]=1 list. Wired as the tenth provider section (src/Domains/StorefrontConfig/StorefrontConfigProvider.php:52,86; DI src/Domains/StorefrontConfig/container.php:71-74; OpenAPI src/Rest/StorefrontConfig/Controllers/StorefrontConfig.php:393-419).

Registry Usage Statistics ​

The settings system manages 85 unique registry groups (4.128.0 added BRANDS_EXTERNAL) across all settings controllers (Adv_settings.php, AdvSocialAuthSettings.php, AdvSocialLinksSettings.php, AdvFavicons.php, AdvEmailViewer.php, AdvMcpConnectorSettings.php).

Production scale: Live databases contain 94 unique registry groups with 890+ registry entries in total. That production figure was measured before 4.121.0 added the four external-frontend groups below, so it is counted against the pre-4.121.0 controller inventory of 77 — leaving 17 groups created outside the settings controllers, by runtime code (jobs, libraries, integrations) via setValue() calls, or by client-specific customizations. The inventory table above is a representative, non-exhaustive sample of the controller-managed groups plus additional groups discovered from production data and code analysis.

Top 30 Registry Groups by Usage Frequency (Codebase-Wide) ​

This table shows how frequently each registry group is read via value() across all ecommercen/ PHP files. Higher counts indicate groups that are critical runtime dependencies -- modifying these groups has broader impact.

#Registry Groupvalue() CallsPrimary Consumers
1XML_FEEDS136Feed generators (src/Feeds/), feed settings
2OTHER118Feature flags throughout admin and storefront
3ESHOP97Core e-commerce: products, orders, checkout, reporting
4AGORA73ProjectAgora ad integration
5MANAGO51ManaGo marketing automation
6POINT_SYSTEM38Loyalty points system
7MAILCHIMP38Mailchimp newsletter integration
8ADVISABLE_AI35AI features (recommendations, content generation)
9GOOGLE_RECOMMENDATIONS29Google Recommendations AI
10PIRAEUSBANK27Piraeus Bank payment gateway
11SMART_RECOMMENDATIONS23Smart recommendation engine
12MATOMO23Matomo analytics
13VIVAWALLET23Viva Wallet payments
14APCOPAY21ApcoPay (Piraeus) payments
15GOOGLE22GA4, reCAPTCHA (hybrid v2+v3), Tag Manager
16EUROBANK18Eurobank payment gateway
17AI_CONTENT_GENERATION_PROVIDER_OPEN_AI17OpenAI content generation
18ETHNIKIBANK_EE16Ethniki Bank express checkout
19PUBLIC_MARKETPLACE15Public/Mirakl marketplace
20MOOSEND15Moosend email marketing
21FACEBOOK_CONVERSION14Meta Conversions API
22APIFON14Apifon SMS provider
23SMARTCART13Skroutz SmartCart marketplace
24PAY_BY_BANK13PayByBank payments
25ALPHABANK13Alpha Bank payment gateway
26SOCIAL_LINKS12Social media URLs
27SOCIAL_AUTH11Google/Facebook OAuth
28KLARNA_PAYMENTS11Klarna payment gateway
29FARMAKON11Farmakon ERP integration
30ECOMMERCEN_PLUS11Email campaigns (points, birthday, reviews)

ESHOP Group Deep Dive ​

The ESHOP group is the third most-referenced registry group (97 value() calls across 44 files). It contains core platform configuration keys spanning multiple settings pages.

Known ESHOP keys (from settings controller analysis):

KeySettings PageDescription
SANITIZE_INTERVALindexDays before guest customer cleanup
COMPANY_PHONEindexCompany phone number
PAYMENTS_ACTIVEindexEnable/disable payments
TRANS_COST_LIMITindexFree shipping threshold
LIMIT_ON_PRODUCTSindexProducts per page limit
DEFAULT_CURRENCYindexDefault currency code
SLUG_TO_GREEKLISHindexTransliterate slugs to Greeklish
MINIMUM_CART_TOTAL_FOR_PAID_AT_STOREindexMinimum cart for store pickup
DEFAULT_POINT_FACTORsubsystemPoints per euro spent
POINT_FACTOR_TYPEsubsystemPoints calculation method
SPEND_POINTSsubsystemPoints needed per euro discount
REWARD_CASHsubsystemCash value of point reward
REWARD_NEW_CUSTOMERsubsystemPoints awarded to new customers
POINTS_TO_NEW_CUSTOMERsubsystemPoints awarded on registration
ESHOP_CUSTOMER_GRADE_1 / _2 / _3subsystemCustomer tier label text (output as the group name by the Top Ranking Customers report, ecommercen/eshop/models/Adv_reporting_model.php:1403)
ESHOP_CUSTOMER_GRADE_1_VALUE / _2_VALUE / _3_VALUEsubsystemCustomer tier numeric spend threshold (compared with SUM(total_vat), Adv_reporting_model.php:1410-1412; read as gold/silver/bronze limits at ecommercen/audience/models/AdvCustomerTagModel.php:729-731). Must be numeric while the point system is on (Adv_settings.php:1048-1050,1061-1063)
BLOG_PRODUCT_ENABLEDonly_advisableBlog-product linking
BLOG_PRODUCT_CATEGORY_ENABLEDonly_advisableBlog-category linking
BLOG_PRODUCT_TWO_WAY_SYNConly_advisableTwo-way blog-product sync
EVENT_ARTICLE_PRODUCT_ENABLEDonly_advisableEvent-product linking
FILTER_CATEGORY_GROUP_TAGS_ENABLEDonly_advisableCategory group tag filters
IMPORT_PRODUCTS_FROM_EXCEL_ENABLEDonly_advisableExcel product import

Note: The full ESHOP group in production databases may contain significantly more keys (estimated 50+ keys across all settings pages and feature flags) than what is declared in the settings controller alone, since other controllers and libraries also write to this group.

OTHER Group Deep Dive ​

The OTHER group is the second most-referenced (118 value() calls) and functions as a catch-all for feature flags:

KeyDescription
DEFAULT_FILTER_FRONTDefault product filter on storefront
LOW_STOCK_END_OF_LISTPush low-stock products to end of listings
ENABLE_LOGIN_AND_BUYRequire login before purchase
SHOW_PRODUCT_HITSDisplay product view counts
ORDER_TAGS_ENABLEDEnable order tagging system
ORDER_EDIT_KEEP_PRODUCT_VALUESKeep original prices when editing orders
Plus 20+ additional feature flagsVarious feature toggles across the platform

Known Issues & Security Gaps ​

  1. The admin menu and the Adv_settings constructor disagree on roles. The constructor admits only ADVISABLE and ADMIN (ecommercen/settings/controllers/Adv_settings.php:23-26), but the menu offers the Adv_settings pages to AUTH_ROLE_DEVELOPER too (for example settings/notification_settings, application/config/admin_menu.php:196, and settings/mobile_app_settings, :345). A user holding DEVELOPER without ADVISABLE or ADMIN gets the 401 page on every one of them, and since #936 the action no longer runs behind it (ecommercen/core/Adv_base_controller.php:187, system/core/Common.php:713). So the DEVELOPER role in the routes table above only has an effect for a user who also holds ADVISABLE or ADMIN, such as the SMS and OneSignal fields gated by canEditNotificationProviders() (Adv_settings.php:1201-1204). The reverse also holds: settings/google (admin_menu.php:228-233), third_party_providers, other_settings, variation_settings, attribute_settings, availableCountries and videoShowcase are listed for ADVISABLE and DEVELOPER only, so an ADMIN-only user, whom the constructor admits, has no menu entry for them and reaches them only by URL.
  2. A brand with no name in the admin's language cannot be added to the external top brands. The left list comes from vendorsCombo(false) (ecommercen/settings/controllers/Adv_settings.php:3248), which inner-joins the brand's translation in the admin's language (ecommercen/eshop/models/Adv_vendors_model.php:155-167). An already chosen brand without one is still kept and shown as #<id> (Adv_settings.php:3251), but a new one cannot be picked until it has a name in the admin's language.

Tests ​

TestCovers
tests/Legacy/Settings/AdvSettingsRecaptchaV3SecretTest.phprecaptchaV3SecretIsStorable(): public callback, round-trip accepted, refused when encryption fails or does not round-trip, empty secret accepted; google() runs validation bound to the controller (4.128.0 regression)
tests/Legacy/Settings/AdvSettingsExternalBrandsTest.phpexternalBrandsVendorExists() (live brand accepted, missing or malformed refused, empty accepted without a lookup), the per-id rule and message, the in-action role check refusing before any write and passing allowed roles
tests/Unit/Domains/StorefrontConfig/Brands/BrandsConfigResolverTest.phpBrandsConfigResolver: no query for an unset or all-malformed list, the key read as the admin writes it, merchant order kept, deleted brands dropped, repeats kept once, one IN filter on the vendor primary key, vendorIds() normalisation
tests/Unit/Domains/StorefrontConfig/StorefrontConfigProviderTest.phpThe provider's sections, including brands
tests/Integration/Domains/StorefrontConfig/ContainerTest.phpDI wiring of every section resolver, the live brands contract and the live vendor check keeping order
tests/Integration/Domains/Support/Repository/Specification/SelectSqlTest.phpThe Select specification liveVendorIds() uses, against a real connection
tests/Legacy/Settings/AdvSettingsExternalHomeHeroGroupTest.phpexternalHome slideshow-group validation
tests/Legacy/Settings/AdvSettingsMobileAppSettingsTest.phpmobile_app_settings validation
tests/Legacy/Settings/AdvOnlyAdvisableCustomPriceResetTest.phpXML_FEEDS.CUSTOM_PRICE_ENABLED ON→OFF reset
tests/Legacy/Settings/AdvXmlFeedsSettingsCustomPriceModifierGuardTest.phpxml_feeds_settings keeps modifiers while the switch is off
tests/Legacy/Settings/AdvEmailViewerHooksTest.php, AdvEmailViewerSubjectSuffixTest.phpEmail viewer, see AD-53

Most settings pages (index, third_party_providers, payment_settings, other_settings, ...) have no tests.