
ms3Variants
Product variants component for MiniShop3


Component for managing product variants in MiniShop3. Lets you create products with different option combinations (color, size, etc.), each with its own price, stock and image.
| Requirement | Version |
|---|---|
| MODX Revolution | 3.0.0+ |
| PHP | 8.1+ |
| MiniShop3 | 1.0.0+ |
| VueTools | 1.0.0+ |
| pdoTools | 3.0.0+ |
After installation:
{'msProductVariants' | snippet}{'msProducts' | snippet : [
'parents' => 0,
'usePackages' => 'ms3Variants',
'includeThumbs' => 'small',
'tpl' => 'ms3_products_row_variants'
]}| Field | Type | Description |
|---|---|---|
| id | int | Variant ID |
| product_id | int | Product ID |
| sku | varchar(100) | Variant SKU |
| price | decimal(12,2) | Price |
| old_price | decimal(12,2) | Old price |
| count | int | Stock |
| weight | decimal(10,3) | Weight |
| file_id | int | Image ID |
| active | tinyint | Active flag |
| position | int | Sort order |
| Field | Type | Description |
|---|---|---|
| id | int | Record ID |
| variant_id | int | Variant ID |
| key | varchar(50) | Option key (color, size...) |
| value | varchar(255) | Option value |