oc-shopaholic/oc-shopaholic-plugin

View on GitHub
models/product/columns.yaml

Summary

Maintainability
Test Coverage
columns:
    name:
        label: 'lovata.toolbox::lang.field.name'
        type: text
        searchable: true
        sortable: true
    active:
        label: 'lovata.toolbox::lang.field.active'
        type: switch
        searchable: false
        sortable: true
    category_name:
        label: 'lovata.toolbox::lang.field.category'
        type: text
        searchable: true
        sortable: true
        relation: category
        select: name
    brand_name:
        label: 'lovata.shopaholic::lang.field.brand'
        type: text
        sortable: true
        relation: brand
        select: name
    code:
        label: 'lovata.shopaholic::lang.field.vendor_code'
        type: text
        searchable: true
        sortable: true
    slug:
        label: 'lovata.toolbox::lang.field.slug'
        type: text
        searchable: true
        sortable: true
    id:
        label: 'lovata.toolbox::lang.field.id'
        type: text
        searchable: true
        sortable: true
        width: 100px
    external_id:
        label: 'lovata.toolbox::lang.field.external_id'
        type: text
        searchable: true
        sortable: true
    created_at:
        label: 'lovata.toolbox::lang.field.created_at'
        type: timetense
        sortable: true
        invisible: true
    updated_at:
        label: 'lovata.toolbox::lang.field.updated_at'
        type: timetense
        sortable: true
        invisible: true