Documentation ¶
Overview ¶
Package catattr handles all product and category related attributes. The name catattr has been chosen to be unique so that one can use goimports without conflicts.
Package catattr handles all category and product related attributes. The name catattr has been chosen to be unique so that one can use goimports without conflicts.
Index ¶
- func CategoryBackendImage() *todoCABI
- func CategoryBackendSortby() *todoCABSB
- func CategorySourceMode() *todoCASMode
- func CategorySourcePage() *todoCASP
- func CategorySourceSortby() *todoCASSB
- func HandlerCategory(i int64) *catHandler
- func HandlerProduct(i int64) *catHandler
- func ProductBackendBoolean() *todoPABB
- func ProductBackendGroupPrice() *todoPABGP
- func ProductBackendMedia() *todoPABM
- func ProductBackendPrice() *todoPABP
- func ProductBackendRecurring() *todoPABR
- func ProductBackendSku() *todoPABSku
- func ProductBackendStartDate() *todoPABSD
- func ProductBackendStock() *todoPABStock
- func ProductBackendTierPrice() *todoPABTP
- func ProductFrontendImage() *eav.AttributeFrontend
- func ProductSourceCountryOfManufacture() *eav.AttributeSource
- func ProductSourceDesignOptionsContainer() *eav.AttributeSource
- func ProductSourceLayout() *eav.AttributeSource
- func ProductSourceStatus() *eav.AttributeSource
- func ProductSourceVisibility() *eav.AttributeSource
- type AttributeSlice
- type Attributer
- type Catalog
- func (a *Catalog) ApplyTo() string
- func (a *Catalog) FrontendInputRenderer() eav.FrontendInputRendererIFace
- func (a *Catalog) IsComparable() bool
- func (a *Catalog) IsConfigurable() bool
- func (a *Catalog) IsFilterable() bool
- func (a *Catalog) IsFilterableInSearch() bool
- func (a *Catalog) IsGlobal() bool
- func (a *Catalog) IsHTMLAllowedOnFront() bool
- func (a *Catalog) IsSearchable() bool
- func (a *Catalog) IsUsedForPriceRules() bool
- func (a *Catalog) IsUsedForPromoRules() bool
- func (a *Catalog) IsVisible() bool
- func (a *Catalog) IsVisibleInAdvancedSearch() bool
- func (a *Catalog) IsVisibleOnFront() bool
- func (a *Catalog) IsWysiwygEnabled() bool
- func (a *Catalog) Position() int64
- func (a *Catalog) SearchWeight() int64
- func (a *Catalog) UsedForSortBy() bool
- func (a *Catalog) UsedInProductListing() bool
- type WSASlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CategoryBackendImage ¶
func CategoryBackendImage() *todoCABI
CategoryBackendImage @todo file uploading and saving @see magento2/site/app/code/Magento/Catalog/Model/Category/Attribute/Backend/Image.php
func CategoryBackendSortby ¶
func CategoryBackendSortby() *todoCABSB
CategoryBackendSortby sorting @todo @see magento2/site/app/code/Magento/Catalog/Model/Category/Attribute/Backend/Sortby.php
func CategorySourceMode ¶
func CategorySourceMode() *todoCASMode
CategorySourceMode @todo @see magento2/site/app/code/Magento/Catalog/Model/Category/Attribute/Source/Mode.php
func CategorySourcePage ¶
func CategorySourcePage() *todoCASP
CategorySourcePage @todo @see magento2/site/app/code/Magento/Catalog/Model/Category/Attribute/Source/Page.php
func CategorySourceSortby ¶
func CategorySourceSortby() *todoCASSB
CategorySourceSortby sorting @todo @see magento2/site/app/code/Magento/Catalog/Model/Category/Attribute/Source/Sortby.php
func HandlerCategory ¶
func HandlerCategory(i int64) *catHandler
func HandlerProduct ¶
func HandlerProduct(i int64) *catHandler
func ProductBackendBoolean ¶
func ProductBackendBoolean() *todoPABB
ProductBackendBoolean @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/Boolean.php
func ProductBackendGroupPrice ¶
func ProductBackendGroupPrice() *todoPABGP
ProductBackendGroupPrice @todo ... pretty complex @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice.php @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice/AbstractGroupPrice.php
func ProductBackendMedia ¶
func ProductBackendMedia() *todoPABM
ProductBackendMedia @todo ... pretty complex @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/Media.php
func ProductBackendPrice ¶
func ProductBackendPrice() *todoPABP
ProductBackendPrice prices @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/Price.php
func ProductBackendRecurring ¶
func ProductBackendRecurring() *todoPABR
ProductRecurring @todo @see Mage_Catalog_Model_Product_Attribute_Backend_Recurring
func ProductBackendSku ¶
func ProductBackendSku() *todoPABSku
ProductBackendSku @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/Sku.php
func ProductBackendStartDate ¶
func ProductBackendStartDate() *todoPABSD
ProductBackendStartDate @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/Startdate.php
func ProductBackendStock ¶
func ProductBackendStock() *todoPABStock
ProductBackendStock @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/Stock.php
func ProductBackendTierPrice ¶
func ProductBackendTierPrice() *todoPABTP
ProductBackendTierPrice @todo ... pretty complex @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/TierPrice.php @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice/AbstractGroupPrice.php
func ProductFrontendImage ¶
func ProductFrontendImage() *eav.AttributeFrontend
ProductFrontendImage @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Frontend/Image.php
func ProductSourceCountryOfManufacture ¶
func ProductSourceCountryOfManufacture() *eav.AttributeSource
ProductSourceCountryOfManufacture @todo hand out price for longest name ;-) @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Source/Countryofmanufacture.php
func ProductSourceDesignOptionsContainer ¶
func ProductSourceDesignOptionsContainer() *eav.AttributeSource
ProductSourceDesignOptionsContainer @todo @see magento2/site/app/code/Magento/Catalog/Model/Entity/Product/Attribute/Design/Options/Container.php @see magento2/site/app/code/Magento/Catalog/etc/di.xml Line ~109
func ProductSourceLayout ¶
func ProductSourceLayout() *eav.AttributeSource
ProductSourceLayout @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Source/Layout.php
func ProductSourceStatus ¶
func ProductSourceStatus() *eav.AttributeSource
ProductSourceStatus @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Attribute/Source/Status.php
func ProductSourceVisibility ¶
func ProductSourceVisibility() *eav.AttributeSource
ProductSourceVisibility @todo @see magento2/site/app/code/Magento/Catalog/Model/Product/Visibility.php This class is misplaced in Magento2 maybe they move it to the correct location ...
Types ¶
type AttributeSlice ¶
type AttributeSlice []Attributer
AttributeSlice implements eav.AttributeSliceGetter @todo website must be present in the slice @todo must create interface to wrap custom columns
func (AttributeSlice) ByCode ¶
func (s AttributeSlice) ByCode(g eav.AttributeGetter, code string) (interface{}, error)
ByCode returns an catattr.Attributer by code. Use type assertion.
func (AttributeSlice) ByID ¶
func (s AttributeSlice) ByID(g eav.AttributeGetter, id int64) (interface{}, error)
ByID returns an catattr.Attributer by int64 id. Use type assertion.
func (AttributeSlice) Index ¶
func (s AttributeSlice) Index(i eav.AttributeIndex) interface{}
Index returns the current catattr.Attributer from index i. Use type assertion.
type Attributer ¶
type Attributer interface { eav.Attributer FrontendInputRenderer() eav.FrontendInputRendererIFace IsGlobal() bool IsVisible() bool IsSearchable() bool IsFilterable() bool IsComparable() bool IsVisibleOnFront() bool IsHTMLAllowedOnFront() bool IsUsedForPriceRules() bool IsFilterableInSearch() bool UsedInProductListing() bool UsedForSortBy() bool // IsConfigurable() bool not used anymore in Magento2 ApplyTo() string IsVisibleInAdvancedSearch() bool Position() int64 IsWysiwygEnabled() bool IsUsedForPromoRules() bool SearchWeight() int64 }
Attributer defines the minimal requirements for a catalog attribute. This interface consists of one more tables: catalog_eav_attribute. Developers can also extend this table to add more columns. These columns will be automatically transformed into more functions.
type Catalog ¶
Catalog a data container for attributes. You can use this struct to embed into your own struct for maybe overriding some method receivers.
func NewCatalog ¶
func NewCatalog( a *eav.Attribute, _ WSASlice, fir eav.FrontendInputRendererIFace, isGlobal bool, isVisible bool, isSearchable bool, isFilterable bool, isComparable bool, isVisibleOnFront bool, isHTMLAllowedOnFront bool, isUsedForPriceRules bool, isFilterableInSearch bool, usedInProductListing bool, usedForSortBy bool, isConfigurable bool, applyTo string, isVisibleInAdvancedSearch bool, position int64, isWysiwygEnabled bool, isUsedForPromoRules bool, searchWeight int64, ) *Catalog
NewCatalog creates a new Catalog attribute. Mainly used in code generation
func (*Catalog) FrontendInputRenderer ¶
func (a *Catalog) FrontendInputRenderer() eav.FrontendInputRendererIFace