@model IEnumerable @{ ViewData["Title"] = "Variant Collections"; }

Variant Collections

Manage reusable variant templates for products

@if (Model.Any()) {
@foreach (var collection in Model) { }
Name Properties Created Updated Status Actions
@collection.Name @if (collection.PropertiesJson != "[]" && !string.IsNullOrWhiteSpace(collection.PropertiesJson)) { @collection.PropertiesJson.Substring(0, Math.Min(50, collection.PropertiesJson.Length))@(collection.PropertiesJson.Length > 50 ? "..." : "") } else { No properties } @collection.CreatedAt.ToString("MMM dd, yyyy") @collection.UpdatedAt.ToString("MMM dd, yyyy") @if (collection.IsActive) { Active } else { Inactive }
Edit
@Html.AntiForgeryToken()
@foreach (var collection in Model) {
@collection.Name
@if (collection.IsActive) { Active } else { Inactive }
Properties: @if (collection.PropertiesJson != "[]" && !string.IsNullOrWhiteSpace(collection.PropertiesJson)) { @collection.PropertiesJson.Substring(0, Math.Min(100, collection.PropertiesJson.Length))@(collection.PropertiesJson.Length > 100 ? "..." : "") } else { No properties defined }
Created: @collection.CreatedAt.ToString("MMM dd, yyyy") Updated: @collection.UpdatedAt.ToString("MMM dd, yyyy")
Edit Collection
@Html.AntiForgeryToken()
}
} else {

No variant collections found. Create your first collection.

Variant collections define reusable property templates (e.g., "Mens Clothes" with Size and Colour properties)

}