Magidoc

VariantSortField
Enum

Possible Values

#

NAME

Sort variants by name.

SKU

Sort variants by sku.

PRICE

Sort variants by price.

CREATED

Sort variants by create date.

UPDATED

Sort variants by update date.

TYPE

Sort variants by type.

SELLER

Sort variants by seller.

SUB_STATUS

Sort variants by sub status.

VARIANT_ID

Sort variants by variant id using rules for "int" values. In the database, ID is an integer. In the API, it's converted to a base64 encoded string. By sorting by ID (by the integer ID values), and returning the queryset back to the API consumer in such order, this allows the API consumer to convert the base64 encoded string back into an integer and view the list in sorted order by integer ID values. E.g. This is useful for the Variant ID column in the Variants List Page of the Dashboard, which shows the base64 decoded values (the integer values) of the variant IDs. .

CATEGORY

Sort variants by category.

BRAND

Sort variants by brand.

MANUFACTURER

Sort variants by manufacturer.