
Admin guide
Where to configure
- Manager: Settings → System settings
- Filter:
namespace = mxquickview - Area:
mxquickview_main
The component has no dedicated manager page. Configuration is done via system settings and site templates/chunks.
Key settings
| Key | Default | Controls |
|---|---|---|
mxquickview_allowed_chunk | mxqv_product,mxqv_resource,ms3_product_content,ms3_products_row | Which chunks can be rendered (mxqv_resource — news, articles, pages) |
mxquickview_allowed_snippet | msCart,msMiniCart | Which snippets can be rendered |
mxquickview_allowed_template | Which templates can be rendered | |
mxquickview_mouseover_delay | 300 | Delay before load on hover |
mxquickview_modal_size | modal-lg | Native/bootstrap size (modal-sm, modal-lg, modal-xl) |
mxquickview_debug | 0 | Console [mxqv] diagnostics when snippet debug is not set |
mxquickview_fancybox_css | [[++assets_url]]components/mxquickview/vendor/fancybox/fancybox.css | Path/URL for Fancybox CSS |
mxquickview_fancybox_js | [[++assets_url]]components/mxquickview/vendor/fancybox/fancybox.umd.js | Path/URL for Fancybox JS |
mxquickview_bootstrap_css | [[++assets_url]]components/mxquickview/vendor/bootstrap/bootstrap.min.css | Path/URL for Bootstrap CSS. Empty — files in vendor/bootstrap, then CDN |
mxquickview_bootstrap_js | [[++assets_url]]components/mxquickview/vendor/bootstrap/bootstrap.min.js | Path/URL for Bootstrap JS. Empty — files in vendor/bootstrap, then CDN |
Snippet parameter modalLibrary accepts native, bootstrap, fancybox.
Recommended setup order
- Keep only trusted elements in the whitelist.
- Tune
modal_sizeandmouseover_delayfor the template. - Include
mxQuickView.initializein the base template. - Add quick view triggers to catalog cards.
- Test: click, mouseover, selector, loop.
Practical scenarios
Product card via chunk
- Add a chunk (e.g.
mxqv_product) tomxquickview_allowed_chunk. - On the product button:
data-mxqv-clickdata-mxqv-mode="modal"data-mxqv-action="chunk"data-mxqv-element="mxqv_product"data-mxqv-id="..."
Cart via snippet
- Add a snippet (e.g.
msCart) tomxquickview_allowed_snippet. - On the button:
data-mxqv-action="snippet"anddata-mxqv-element="msCart".
Render into your own container (no built-in modal)
- On the trigger:
data-mxqv-mode="selector". - Set
data-mxqv-output=".css-selector". - JS inserts HTML into that container.
Native modal via CSS variables
- For
modalLibrary = nativeyou can change styles without editing HTML/JS. - Override
--mxqv-*in the theme after loadingmxqv.css. - For
modalLibrary = fancyboxthe component uses files inassets/components/mxquickview/vendor/fancybox/. If they are missing, CDN@fancyapps/uiis used. - For
modalLibrary = bootstrap— files inassets/components/mxquickview/vendor/bootstrap/. If they are missing, Bootstrap CDN. - Commonly changed:
--mxqv-modal-size-lg,--mxqv-modal-size-xl--mxqv-backdrop-bg--mxqv-header-padding,--mxqv-body-padding--mxqv-modal-bg,--mxqv-modal-shadow
- Full list: API and interfaces → Native modal CSS variables.
allowed_template logic
template is always checked against whitelist mxquickview_allowed_template. If the list is empty, data_action="template" returns Template not allowed.
Pre-release checklist
- No extra elements in the whitelist.
- All triggers have a valid
data-mxqv-id. - Connector error responses checked (
Chunk/Snippet/Template not allowed). - For
mode=selector, the target container exists in the DOM. - If MiniShop3 is on the page and initialized, add to cart from quick view is tested.
