| isVariant() |
Returns that the product is the variant |
bool
|
| getProduct() |
|
Product
|
| getParent() |
Gets a parent product of the variant |
Product
|
| getChildren() |
|
Collection
|
| getText() |
Get the short description in the default language for this product |
string
|
| getDefaultPricing() |
Get the default pricing |
ProductPricing
|
| getFinalPrice() |
Calculates the final price for the product in current currency for the current user based on the provided pricing |
string
|
| getName() |
Fetches the name in the default description for this container |
string
|
| getSlug() |
Fetches the slug for the default description for this container |
string
|
| getFullSlug() |
Fetches the full slug for the default description for this container |
string
|
| getFullPath() |
Fetches the full path for the default description for this container |
string
|
| getOriginalPath() |
Fetches the original path for the container without any custom urls applied |
string
|
| getLanguageDescription(Language $language) |
Retrieves a description for the specified language. Returns null if no description exists. |
Model
|
| getDefaultDescription() |
Fetches the description in the default language for this container. If no description in the default language, fetches the first one. If still no description exists, creates a new description with the default language. |
Model
|
| getImageRootTargetFolderPath() |
Retrieves the *root* target folder path for uploaded images. This is usually the root entity path without the ID or slug sub folder. |
string
|
| getImageTargetFolderPath() |
Retrieves the target folder path for uploaded images. Images will be moved to this path after the upload has been processed. |
string
|
| 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
|
| getPublished() |
|
DateTime
|
| isPublished() |
Determines if the record is published. |
bool
|
| getImage() |
|
Image
|
| getSite() |
|
Site
|
| getDescriptions() |
|
Collection (ProductDescription)
|
| getPricings() |
|
Collection (ProductPricing)
|
| getWidth() |
|
string
|
| getHeight() |
|
string
|
| getDepth() |
|
string
|
| getWeight() |
|
string
|
| getAvailableQuantity() |
|
int
|
| getInventoryTemplate() |
|
string
|
| getStocks() |
|
Collection (Stock)
|
| getInterests() |
|
Collection (ProductInterest)
|
| 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
|
| isVersionedModel() |
Check whether a model is versioned |
bool
|
| getDefaultLanguage() |
Get the default language for the record |
Language
|
| getAvailableLanguages() |
Get the available languages |
Collection
|
| getAvailableWarehouses() |
Returns the list of warehouses sorted by name and indexed by ID |
array
|
| getStockQuantities() |
Fetches stock quantities (indexed by warehouse ID) and keeps current value, value (submitted by user) and original value (value fetched as current on HTML form rendering) |
array
|