Skip to content
  1. Extras
  2. ms3OptionsColor

ms3OptionsColor ​

With ms3OptionsColor you assign a color, pattern, or RAL to miniShop3 option values. Swatches appear on the storefront, in select, in filters, and in the cart. The dictionary is shared: one option_key + value pair for the whole catalog. Assign color=Синий once, and the same swatch appears on every product with that value.

Swatch dictionary in the manager

Features ​

Manager ​

CMP on Vue 3 and PrimeVue (VueTools): Dictionary and RAL tabs. Search by key and value, status filter, HEX / pattern / RAL dialog.

On the product card the Swatches tab sits next to Product properties. Set option values first, then assign swatches. On option chips the script draws a color square.

Swatches tab

Storefront ​

Snippet ms3OptionsColor and Fenom chunks. Storefront CSS loads automatically when ms3optionscolor_frontend_css is enabled. Select with swatch works via Select2 or a plain <select>.

Swatches on the storefront

mFilter and ms3variants ​

Filter type ms3oc draws swatches from the dictionary. The package does not change the built-in colors type. With ms3variants, catalog variants can show colors from the dictionary.

ms3oc filter

Requirements ​

ComponentVersion
MODX Revolution≥ 3.0.3
miniShop3≥ 1.0.0
VueTools≥ 1.1.2-pl
pdoTools3.x
PHP≥ 8.2
mFilteroptional, for ms3oc filter type
ms3variantsoptional: variant colors in the catalog

Installation ​

  1. Install ms3OptionsColor via System → Package Management.
  2. Clear the MODX cache.
  3. Check that the manager role has msproduct_save (same as saving a miniShop3 product). The package does not create its own ACL keys.
  4. Open Extras → ms3OptionsColor. The dictionary should open without a blank screen or VueTools errors.

The package prepares the dictionary and RAL Classic database, the manager section, and the plugin: product tab, storefront, filter.

Package elements ​

TypeNamePurpose
Snippetms3OptionsColorSwatches, option for select, return=data
Pluginms3OptionsColorProduct tab, storefront CSS, mFilter, variant colors in the catalog
ChunkstplMs3OptionsColor*Storefront, select, cart, mFilter
Menums3OptionsColorDictionary and RAL CMP

Next steps ​

TaskSection
First swatch in 15 minutesQuick start
ms3optionscolor_* keysSystem settings
Select, cart, CSS/JSFrontend
Snippet parameters and chunksSnippets
Catalog filter ms3ocmFilter
Variant colors in the catalogms3variants
CMP and product tabManager overview
Flows A–I with screenshotsFlows
Dictionary and plugin eventsEvents
Common errorsFAQ