g
Frontend | Backend | Api

Products\Models\Frontend\BaseProduct

Product

Method Description Returns
getName() Get the name for the default language description for this product string
getText() Get the short description for the default language description for this product string
getSlug() Get the slug for the default language description for this product string
getFullSlug() Get the full slug for the default language description for this product, including category slugs but without the module slug string
getFullPath() Get the full path for the default language description for this product, including category slugs and the module slug string
getOriginalPath() Get the original path for the product without any custom urls applied string
getDefaultDescription() Get the default language description ProductDescription
getLanguageDescription(Language $language) Retrieve a description for the specified language. Returns null if no description exists. ProductDescription
getDefaultPricing() Get the default pricing ProductPricing
getPublished() Get the date the default language description for this product was published. This getter is used for the products manage page. DateTime
getId() int
getCode() The code that uniquely identifies this product string
getExternalId() string
isPurchasable() bool
getAvailableFrom() DateTime
getAvailableTill() DateTime
getCreated() Date the record was created. DateTime
getModified() Last modification date for the record. DateTime
getImage() Image
getDescriptions() Collection (ProductDescription)
getPricings() Collection (ProductPricing)
getWidth() string
getHeight() string
getDepth() string
getWeight() string
isNewRecord() Check if the record is a new record bool
isHierarchicalModel() Check whether a model is a hierarchical model, i.e. can have children bool