producttag

package
v1.46.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package producttag is a free-form product tag (Medusa v2 parity: product-tag).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type ProductTag

type ProductTag struct {
	mixin.Model[ProductTag]

	Value string `json:"value"`

	Metadata  Map    `json:"metadata,omitempty" datastore:"-"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

ProductTag is a taggable label for products.

func New

func New(db *datastore.Datastore) *ProductTag

func (*ProductTag) Load

func (t *ProductTag) Load(ps []datastore.Property) (err error)

func (*ProductTag) Save

func (t *ProductTag) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL