Model
Database Schema
| Column | Type | Nullable | Default | Description |
|---|---|---|---|---|
id | bigint | no | auto | Primary key |
name | string | no | - | Tag name |
slug | string | yes | auto | URL-friendly identifier (unique) |
created_at | timestamp | yes | null | Creation timestamp |
updated_at | timestamp | yes | null | Last update timestamp |
Relationships
Products
Tags use the shared polymorphicproduct_has_relations pivot table, the same mechanism used by categories, collections, and channels.
Creating Tags
Retrieving Tags
Disabling Tag Feature
If you don’t need tags in your store, you can disable the feature entirely:- Tag menu item is hidden from the sidebar
- Tag-related routes are not registered
- Tag selection is removed from product forms
Components
Tags are managed under the product components configuration. Publish to customize:config/shopper/components/product.php: