Variant Manager documentation
A Craft CMS plugin for managing Craft Commerce variants as combinations of attributes and options.
Where to go#
Getting started: a walkthrough from install to your first import, installation, and upgrading from an earlier version.
User guide:
- Variant attributes, the field every other feature works through, and the swatches and custom fields you can attach to it.
- Importing, creating and updating products and variants from a spreadsheet.
- Variant Maker, generating variants in the control panel from attributes and options you pick.
- Exporting, getting variants out as a CSV you can edit and reimport.
- Variants index, one listing of every variant, with filters and bulk edit.
- Troubleshooting, when an import does not behave the way you expected.
Dev guide:
- Template tags, reading attributes and their metadata in Twig.
- Querying variants, the three filter shapes for finding variants by attribute.
- Writing to the registry, registering attributes and options from a module or plugin.
- Custom queue, running imports on a dedicated queue.
Reference:
- Configuration, every config key with its default.
- Console commands, every command, argument, and flag.
- Variant Attributes field, what the field stores and how to query it.
- Permissions, every handle and what it gates.
Recipes:
- Add to cart, a variant picker that posts to the cart.
- Variant filter, filtering a product’s variants on the storefront.
- Field maps for many product types, organizing
productFieldMapon a large catalog.
Roadmap: ideas under consideration, not commitments.