StoredProduct
extends GXEngineProduct
in package
implements
StoredProductInterface
Class StoredProduct
Tags
Interfaces, Classes and Traits
- StoredProductInterface
- Interface StoredProductInterface
Table of Contents
- $active : bool
- Determines whether this product is active.
- $addedDateTime : DateTime
- Added DateTime
- $addonValues : EditableKeyValueCollection
- Addons collection
- $availableDateTime : EmptyDateTime
- Available DateTime
- $checkoutInformation : EditableKeyValueCollection
- Checkout information collection
- $descriptions : EditableKeyValueCollection
- Description collection
- $discountAllowed : float
- Discount allowed
- $ean : string
- EAN
- $fsk18 : bool
- Is FSK 18?
- $imageContainer : ProductImageContainer
- Image container
- $infoUrl : EditableKeyValueCollection
- Url for further information of the product (e.g. manufacturer homepage)
- $keywords : EditableKeyValueCollection
- Keyword collection
- $lastModifiedDateTime : DateTime
- Last modified DateTime
- $mainCategoryId : int
- Main category ID
- $manufacturerId : int
- Manufacturer ID
- $metaDescriptions : EditableKeyValueCollection
- Meta description collection
- $metaKeywords : EditableKeyValueCollection
- Meta keywords collection
- $metaTitles : EditableKeyValueCollection
- Meta title collection
- $minQuantity : int
- Minimum quantity
- $names : EditableKeyValueCollection
- Names collection
- $orderedCount : int
- Ordered count
- $price : float
- Price
- $productId : int
- Product ID.
- $productModel : string
- Product model
- $productTypeId : int
- Product type ID
- $quantity : float
- Quantity
- $quantityUnitId : int
- Quantity Unit ID
- $settings : ProductSettingsInterface
- Product settings
- $shippingCosts : float
- Shipping costs
- $shippingTimeId : int
- Shipping time ID
- $shortDescriptions : EditableKeyValueCollection
- Short description collection
- $sortOrder : int
- Sort order
- $specialOfferId : int
- Special offer id.
- $taxClassId : int
- Tax class ID
- $url : EditableKeyValueCollection
- Manufacturer URL
- $urlKeywords : EditableKeyValueCollection
- URL keywords
- $urlRewrites : UrlRewriteCollection
- URL rewrites
- $viewedCount : EditableKeyValueCollection
- Viewed count
- $vpeActive : bool
- Is VPE active?
- $vpeId : int
- VPE ID
- $vpeValue : float
- VPE value
- $weight : float
- Weight
- __construct() : mixed
- StoredProduct constructor.
- addAddonValues() : GXEngineProduct
- Add Addon Values
- deleteAddonValue() : GXEngineProduct
- Delete Addon Value
- getAddedDateTime() : DateTime
- Get Added Date Time
- getAdditionalImages() : ProductImageCollection
- Returns a product's additional images.
- getAddonValue() : string
- Get Addon Value
- getAddonValueContainerId() : int
- Returns the product ID.
- getAddonValues() : KeyValueCollection
- Get Addon Values
- getAvailableDateTime() : DateTime
- Get Available Date Time
- getCheckoutInformation() : string
- Get Checkout Information
- getDescription() : string
- Get Description
- getDiscountAllowed() : float
- Get Discount Allowed
- getEan() : string
- Get EAN
- getImageContainer() : ProductImageContainer
- Returns the image container of the product.
- getInfoUrl() : string
- Get Info Url
- getKeywords() : string
- Get Keywords
- getLastModifiedDateTime() : DateTime
- Get Last Modified Date Time
- getMainCategoryId() : int
- Returns the main category id.
- getManufacturerId() : int
- Get Manufacturer ID
- getMetaDescription() : string
- Get Meta Description
- getMetaKeywords() : string
- Get Meta Keywords
- getMetaTitle() : string
- Get Meta Title
- getMinimumQuantity() : float
- Get Quantity
- getName() : string
- Get Name
- getOrderedCount() : int
- Get Ordered Count
- getPrice() : float
- Get Price
- getPrimaryImage() : ProductImage
- Returns the product's primary image.
- getProductId() : int
- Get Product ID.
- getProductModel() : string
- Get Product Model
- getProductTypeId() : int
- Get Product Type ID.
- getQuantity() : float
- Get Quantity
- getQuantityUnitId() : int
- Get Quantity Unit ID
- getSettings() : ProductSettingsInterface
- Get Product Settings.
- getShippingCosts() : float
- Get Shipping Costs
- getShippingTimeId() : int
- Get Shipping Time ID
- getShortDescription() : string
- Get Short Description
- getSortOrder() : int
- Get Sort Order
- getSpecialOfferId() : int
- Returns the Special offer id.
- getTaxClassId() : int
- Get Tax Class ID
- getUrl() : string
- Get Info Url
- getUrlKeywords() : string
- Get URL Keywords
- getUrlRewrite() : UrlRewrite
- Get URL rewrite
- getUrlRewrites() : UrlRewriteCollection
- Get URL rewrites
- getViewedCount() : int
- Get View Count
- getVpeId() : int
- Get VPE ID.
- getVpeValue() : float
- Get VPE Value
- getWeight() : float
- Get Weight
- isActive() : bool
- Is Active
- isFsk18() : bool
- Is FSK 18
- isVpeActive() : bool
- Is VPE Active
- setActive() : GXEngineProduct
- Set Active
- setAddedDateTime() : GXEngineProduct
- Sets the added date time.
- setAddonValue() : GXEngineProduct
- Set Addon Value
- setAvailableDateTime() : GXEngineProduct
- Set Available Date Time
- setCheckoutInformation() : GXEngineProduct
- Set Checkout Information
- setDescription() : GXEngineProduct
- Set Description
- setDiscountAllowed() : GXEngineProduct
- Set Discount Allowed
- setEan() : GXEngineProduct
- Set EAN
- setFsk18() : GXEngineProduct
- Set FSK 18
- setImageContainer() : GXEngineProduct
- Set Image Container
- setInfoUrl() : GXEngineProduct
- Set Product's Info URL
- setKeywords() : GXEngineProduct
- Set Keywords
- setLastModifiedDateTime() : GXEngineProduct
- Set Last Modified Date Time
- setMainCategoryId() : GXEngineProduct
- Set Main Category ID
- setManufacturerId() : GXEngineProduct
- Set Manufacturer ID
- setMetaDescription() : GXEngineProduct
- Set Meta description.
- setMetaKeywords() : GXEngineProduct
- Set Meta Keywords
- setMetaTitle() : GXEngineProduct
- Set Meta title.
- setMinimumQuantity() : GXEngineProduct
- Set minimum quantity
- setName() : GXEngineProduct
- Set Name
- setOrderedCount() : GXEngineProduct
- Set Ordered Count
- setPrice() : GXEngineProduct
- Set Price
- setProductModel() : GXEngineProduct
- Set Product Model
- setProductTypeId() : GXEngineProduct
- Set Product Type ID.
- setQuantity() : GXEngineProduct
- Set Quantity
- setQuantityUnitId() : ProductInterface
- Set Quantity Uniz ID
- setSettings() : GXEngineProduct
- Sets a product setting object
- setShippingCosts() : GXEngineProduct
- Set Shipping Costs
- setShippingTimeId() : GXEngineProduct
- Set Shipping Time ID
- setShortDescription() : GXEngineProduct
- Set Short Description
- setSortOrder() : GXEngineProduct
- Set Sort Order
- setSpecialOfferId() : GXEngineProduct
- Sets Special offer id.
- setTaxClassId() : GXEngineProduct
- Set Tax Class ID
- setUrl() : GXEngineProduct
- Set Product's Info URL
- setUrlKeywords() : GXEngineProduct
- Set URL Keywords
- setUrlRewrite() : GXEngineProduct
- Set URL rewrite
- setUrlRewrites() : GXEngineProduct
- Set URL rewrites
- setViewedCount() : GXEngineProduct
- Set Viewed Count
- setVpeActive() : GXEngineProduct
- Set VPE Active
- setVpeId() : GXEngineProduct
- Set VPE ID
- setVpeValue() : GXEngineProduct
- Set VPE Value
- setWeight() : GXEngineProduct
- Set Weight
Properties
$active
Determines whether this product is active.
protected
bool
$active
= alse
$addedDateTime
Added DateTime
protected
DateTime
$addedDateTime
$addonValues
Addons collection
protected
EditableKeyValueCollection
$addonValues
$availableDateTime
Available DateTime
protected
EmptyDateTime
$availableDateTime
$checkoutInformation
Checkout information collection
protected
EditableKeyValueCollection
$checkoutInformation
$descriptions
Description collection
protected
EditableKeyValueCollection
$descriptions
$discountAllowed
Discount allowed
protected
float
$discountAllowed
= 0.0
$ean
EAN
protected
string
$ean
= ''
$fsk18
Is FSK 18?
protected
bool
$fsk18
= alse
$imageContainer
Image container
protected
ProductImageContainer
$imageContainer
$infoUrl
Url for further information of the product (e.g. manufacturer homepage)
protected
EditableKeyValueCollection
$infoUrl
$keywords
Keyword collection
protected
EditableKeyValueCollection
$keywords
$lastModifiedDateTime
Last modified DateTime
protected
DateTime
$lastModifiedDateTime
$mainCategoryId
Main category ID
protected
int
$mainCategoryId
= 0
$manufacturerId
Manufacturer ID
protected
int
$manufacturerId
= 0
$metaDescriptions
Meta description collection
protected
EditableKeyValueCollection
$metaDescriptions
$metaKeywords
Meta keywords collection
protected
EditableKeyValueCollection
$metaKeywords
$metaTitles
Meta title collection
protected
EditableKeyValueCollection
$metaTitles
$minQuantity
Minimum quantity
protected
int
$minQuantity
= 0.0
$names
Names collection
protected
EditableKeyValueCollection
$names
$orderedCount
Ordered count
protected
int
$orderedCount
= 0
$price
Price
protected
float
$price
= 0.0
$productId
Product ID.
protected
int
$productId
= 0
$productModel
Product model
protected
string
$productModel
= ''
$productTypeId
Product type ID
protected
int
$productTypeId
= 0
$quantity
Quantity
protected
float
$quantity
= 0.0
$quantityUnitId
Quantity Unit ID
protected
int
$quantityUnitId
= 0
$settings
Product settings
protected
ProductSettingsInterface
$settings
$shippingCosts
Shipping costs
protected
float
$shippingCosts
= 0.0
$shippingTimeId
Shipping time ID
protected
int
$shippingTimeId
= 0
$shortDescriptions
Short description collection
protected
EditableKeyValueCollection
$shortDescriptions
$sortOrder
Sort order
protected
int
$sortOrder
= 0
$specialOfferId
Special offer id.
protected
int
$specialOfferId
= 0
$taxClassId
Tax class ID
protected
int
$taxClassId
= 0
$url
Manufacturer URL
protected
EditableKeyValueCollection
$url
Tags
$urlKeywords
URL keywords
protected
EditableKeyValueCollection
$urlKeywords
$urlRewrites
URL rewrites
protected
UrlRewriteCollection
$urlRewrites
$viewedCount
Viewed count
protected
EditableKeyValueCollection
$viewedCount
$vpeActive
Is VPE active?
protected
bool
$vpeActive
= alse
$vpeId
VPE ID
protected
int
$vpeId
= 0
$vpeValue
VPE value
protected
float
$vpeValue
= 0.0
$weight
Weight
protected
float
$weight
= 0.0
Methods
__construct()
StoredProduct constructor.
public
__construct(IdType $productId, ProductSettingsInterface $settings) : mixed
Parameters
- $productId : IdType
-
Product ID.
- $settings : ProductSettingsInterface
-
Product settings.
Return values
mixed —addAddonValues()
Add Addon Values
public
addAddonValues(KeyValueCollection $keyValueCollection) : GXEngineProduct
Adds a key value collection to a product.
Parameters
- $keyValueCollection : KeyValueCollection
-
The key value collection to add.
Return values
GXEngineProduct —Same instance for chained method calls.
deleteAddonValue()
Delete Addon Value
public
deleteAddonValue(StringType $key) : GXEngineProduct
Deletes an addon value of a product.
Parameters
- $key : StringType
-
The key of the addon value to delete.
Tags
Return values
GXEngineProduct —Same instance for chained method calls.
getAddedDateTime()
Get Added Date Time
public
getAddedDateTime() : DateTime
Returns the added date time of the product.
Return values
DateTime —The added date time.
getAdditionalImages()
Returns a product's additional images.
public
getAdditionalImages() : ProductImageCollection
Return values
ProductImageCollection —getAddonValue()
Get Addon Value
public
getAddonValue(StringType $key) : string
Returns the addon value of a product, depending on the provided key.
Parameters
- $key : StringType
-
The key of the addon value to return.
Tags
Return values
string —The addon value.
getAddonValueContainerId()
Returns the product ID.
public
getAddonValueContainerId() : int
Return values
int —getAddonValues()
Get Addon Values
public
getAddonValues() : KeyValueCollection
Returns a key value collection of the product.
Return values
KeyValueCollection —The key value collection.
getAvailableDateTime()
Get Available Date Time
public
getAvailableDateTime() : DateTime
Returns the available date time of the product.
Return values
DateTime —The available date time.
getCheckoutInformation()
Get Checkout Information
public
getCheckoutInformation(LanguageCode $language) : string
Returns the checkout information of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the checkout information to be return.
Tags
Return values
string —The checkout information of the product.
getDescription()
Get Description
public
getDescription(LanguageCode $language) : string
Returns the description of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the description to return.
Tags
Return values
string —The description of the product.
getDiscountAllowed()
Get Discount Allowed
public
getDiscountAllowed() : float
Returns the allowed discount.
Return values
float —The allowed discount.
getEan()
Get EAN
public
getEan() : string
Returns the EAN of the product.
Return values
string —The EAN of the product.
getImageContainer()
Returns the image container of the product.
public
getImageContainer() : ProductImageContainer
Return values
ProductImageContainer —Product image container.
getInfoUrl()
Get Info Url
public
getInfoUrl(LanguageCode $language) : string
Returns the URL for further information of the product (e.g. manufacturer homepage), depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the URL to return.
Return values
string —Product's Manufacturer URL
getKeywords()
Get Keywords
public
getKeywords(LanguageCode $language) : string
Returns the keywords of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the keywords to return.
Tags
Return values
string —The keywords of the product.
getLastModifiedDateTime()
Get Last Modified Date Time
public
getLastModifiedDateTime() : DateTime
Returns the last modified date time.
Return values
DateTime —The last modified date time.
getMainCategoryId()
Returns the main category id.
public
getMainCategoryId() : int
Return values
int —getManufacturerId()
Get Manufacturer ID
public
getManufacturerId() : int
Returns the manufacturer ID.
Return values
int —The manufacturer ID.
getMetaDescription()
Get Meta Description
public
getMetaDescription(LanguageCode $language) : string
Returns the meta description of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the meta description to return.
Tags
Return values
string —The meta description of the product.
getMetaKeywords()
Get Meta Keywords
public
getMetaKeywords(LanguageCode $language) : string
Returns the meta keywords of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the meta keywords to return.
Tags
Return values
string —The meta keywords of the product.
getMetaTitle()
Get Meta Title
public
getMetaTitle(LanguageCode $language) : string
Returns the meta title of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the meta title to return.
Tags
Return values
string —The meta title of the product.
getMinimumQuantity()
Get Quantity
public
getMinimumQuantity() : float
Returns the minimum quantity of the product.
Return values
float —The minimumquantity of the product.
getName()
Get Name
public
getName(LanguageCode $language) : string
Returns the name of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the name to return.
Tags
Return values
string —The name of the product.
getOrderedCount()
Get Ordered Count
public
getOrderedCount() : int
Returns the ordered count of the product.
Return values
int —The ordered count.
getPrice()
Get Price
public
getPrice() : float
Returns the price of a product.
Return values
float —The price of the product.
getPrimaryImage()
Returns the product's primary image.
public
getPrimaryImage() : ProductImage
Return values
ProductImage —getProductId()
Get Product ID.
public
getProductId() : int
Returns the ID of the stored product.
Return values
int —The product ID.
getProductModel()
Get Product Model
public
getProductModel() : string
Returns the product model.
Return values
string —The product model.
getProductTypeId()
Get Product Type ID.
public
getProductTypeId() : int
Returns the product type ID.
Return values
int —The product type ID.
getQuantity()
Get Quantity
public
getQuantity() : float
Returns the quantity of the product.
Return values
float —The quantity of the product.
getQuantityUnitId()
Get Quantity Unit ID
public
getQuantityUnitId() : int
Returns the quantity unit ID.
Return values
int —The quantity unit ID.
getSettings()
Get Product Settings.
public
getSettings() : ProductSettingsInterface
Returns the product settings.
Return values
ProductSettingsInterface —getShippingCosts()
Get Shipping Costs
public
getShippingCosts() : float
Returns the shipping cost of the product.
Return values
float —The shipping costs of the product.
getShippingTimeId()
Get Shipping Time ID
public
getShippingTimeId() : int
Returns the shipping time ID of the product.
Return values
int —The shipping time ID.
getShortDescription()
Get Short Description
public
getShortDescription(LanguageCode $language) : string
Returns the short description of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the short description to return.
Tags
Return values
string —The short description of the product.
getSortOrder()
Get Sort Order
public
getSortOrder() : int
Returns an integer which represents a specific sort order.
Return values
int —The sort order.
getSpecialOfferId()
Returns the Special offer id.
public
getSpecialOfferId() : int
Return values
int —The special offer id.
getTaxClassId()
Get Tax Class ID
public
getTaxClassId() : int
Returns the tax class ID of the product.
Return values
int —The tax class ID.
getUrl()
Get Info Url
public
getUrl(LanguageCode $language) : string
Returns the URL for further information of the product (e.g. manufacturer homepage), depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the URL to return.
Tags
Return values
string —Product's Manufacturer URL
getUrlKeywords()
Get URL Keywords
public
getUrlKeywords(LanguageCode $language) : string
Returns the URL keywords of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the URL keywords to be return.
Tags
Return values
string —The URL keywords of the product.
getUrlRewrite()
Get URL rewrite
public
getUrlRewrite(LanguageCode $language) : UrlRewrite
Returns the URL rewrite of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the URL rewrite to be return.
Tags
Return values
UrlRewrite —The URL rewrite of the product.
getUrlRewrites()
Get URL rewrites
public
getUrlRewrites() : UrlRewriteCollection
Returns the URL rewrites of the product.
Return values
UrlRewriteCollection —The URL rewrites of the product.
getViewedCount()
Get View Count
public
getViewedCount(LanguageCode $language) : int
Returns the current view count of the product, depending on the provided language code.
Parameters
- $language : LanguageCode
-
The language code of the language to be returned.
Tags
Return values
int —The current view count.
getVpeId()
Get VPE ID.
public
getVpeId() : int
Returns the VPE ID.
Return values
int —VPE ID.
getVpeValue()
Get VPE Value
public
getVpeValue() : float
Returns the VPE value.
Return values
float —The VPE value.
getWeight()
Get Weight
public
getWeight() : float
Returns the weight of the product.
Return values
float —The weight of the product.
isActive()
Is Active
public
isActive() : bool
Checks if a product is active.
Return values
bool —Product status.
isFsk18()
Is FSK 18
public
isFsk18() : bool
Checks if the product is only available for FSK 18.
Return values
bool —Is the product FSK18?
isVpeActive()
Is VPE Active
public
isVpeActive() : bool
Checks if VPE is active on the product.
Return values
bool —Is VPE active on the product?
setActive()
Set Active
public
setActive(BoolType $status) : GXEngineProduct
Activates or deactivates a product status.
Parameters
- $status : BoolType
-
The status to activate or deactivate the product.
Return values
GXEngineProduct —Same instance for chained method calls.
setAddedDateTime()
Sets the added date time.
public
setAddedDateTime(DateTime $date) : GXEngineProduct
Parameters
- $date : DateTime
-
Added date time.
Return values
GXEngineProduct —Same instance for chained method calls.
setAddonValue()
Set Addon Value
public
setAddonValue(StringType $key, StringType $value) : GXEngineProduct
Sets the addon value of a product.
Parameters
- $key : StringType
-
The key for the addon value.
- $value : StringType
-
The value for the addon.
Return values
GXEngineProduct —Same instance for chained method calls.
setAvailableDateTime()
Set Available Date Time
public
setAvailableDateTime(DateTime $date) : GXEngineProduct
Sets an available date time.
Parameters
- $date : DateTime
-
The date time to add.
Return values
GXEngineProduct —Same instance for chained method calls.
setCheckoutInformation()
Set Checkout Information
public
setCheckoutInformation(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the checkout information of a product.
Parameters
- $text : StringType
-
The checkout information.
- $language : LanguageCode
-
The language code for the checkout information.
Return values
GXEngineProduct —Same instance for chained method calls.
setDescription()
Set Description
public
setDescription(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the products description.
Parameters
- $text : StringType
-
The description.
- $language : LanguageCode
-
The language code for the description.
Return values
GXEngineProduct —Same instance for chained method calls.
setDiscountAllowed()
Set Discount Allowed
public
setDiscountAllowed(DecimalType $discount) : GXEngineProduct
Sets the allowed discount of a product.
Parameters
- $discount : DecimalType
-
The discount to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setEan()
Set EAN
public
setEan(StringType $ean) : GXEngineProduct
Sets a EAN for the product.
Parameters
- $ean : StringType
-
The EAN to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setFsk18()
Set FSK 18
public
setFsk18(BoolType $status) : GXEngineProduct
Activates or deactivates FSK18 for a product.
Parameters
- $status : BoolType
-
Should FSK be activated?
Return values
GXEngineProduct —Same instance for chained method calls.
setImageContainer()
Set Image Container
public
setImageContainer(ProductImageContainerInterface $images) : GXEngineProduct
Sets the image container of a product.
Parameters
- $images : ProductImageContainerInterface
Return values
GXEngineProduct —Same instance for chained method calls.
setInfoUrl()
Set Product's Info URL
public
setInfoUrl(StringType $url, LanguageCode $language) : GXEngineProduct
Sets the product's info URL (e.g. homepage of the manufacturer).
Parameters
- $url : StringType
-
The URL.
- $language : LanguageCode
-
The language code.
Return values
GXEngineProduct —Same instance for chained method calls.
setKeywords()
Set Keywords
public
setKeywords(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the products keywords.
Parameters
- $text : StringType
-
The keywords.
- $language : LanguageCode
-
The language code for the keywords.
Return values
GXEngineProduct —Same instance for chained method calls.
setLastModifiedDateTime()
Set Last Modified Date Time
public
setLastModifiedDateTime(DateTime $date) : GXEngineProduct
Sets the last modified date time.
Parameters
- $date : DateTime
-
The last modified date time.
Return values
GXEngineProduct —Same instance for chained method calls.
setMainCategoryId()
Set Main Category ID
public
setMainCategoryId(IdType $categoryId) : GXEngineProduct
Sets the main category ID for the product.
Parameters
- $categoryId : IdType
Return values
GXEngineProduct —Same instance for chained method calls.
setManufacturerId()
Set Manufacturer ID
public
setManufacturerId(IdType $id) : GXEngineProduct
Sets the manufacturer ID of a product.
Parameters
- $id : IdType
-
The manufacturer ID to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setMetaDescription()
Set Meta description.
public
setMetaDescription(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the meta description of a product.
Parameters
- $text : StringType
- $language : LanguageCode
Return values
GXEngineProduct —Same instance for chained method calls.
setMetaKeywords()
Set Meta Keywords
public
setMetaKeywords(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the products meta keywords.
Parameters
- $text : StringType
-
The meta keywords.
- $language : LanguageCode
-
The language code for the meta keywords.
Return values
GXEngineProduct —Same instance for chained method calls.
setMetaTitle()
Set Meta title.
public
setMetaTitle(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the meta title of a product.
Parameters
- $text : StringType
- $language : LanguageCode
Return values
GXEngineProduct —Same instance for chained method calls.
setMinimumQuantity()
Set minimum quantity
public
setMinimumQuantity(DecimalType $minQuantity) : GXEngineProduct
Sets a minimum quantity for the product.
Parameters
- $minQuantity : DecimalType
-
The minimum quantity to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setName()
Set Name
public
setName(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the products name.
Parameters
- $text : StringType
-
The name of the product.
- $language : LanguageCode
-
The language code for the product name.
Return values
GXEngineProduct —Same instance for chained method calls.
setOrderedCount()
Set Ordered Count
public
setOrderedCount(IntType $count) : GXEngineProduct
Sets the ordered count.
Parameters
- $count : IntType
-
The ordered count.
Return values
GXEngineProduct —Same instance for chained method calls.
setPrice()
Set Price
public
setPrice(DecimalType $price) : GXEngineProduct
Sets a price of the product.
Parameters
- $price : DecimalType
-
The price to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setProductModel()
Set Product Model
public
setProductModel(StringType $model) : GXEngineProduct
Set the product model.
Parameters
- $model : StringType
-
The product model.
Return values
GXEngineProduct —Same instance for chained method calls.
setProductTypeId()
Set Product Type ID.
public
setProductTypeId(IdType $id) : GXEngineProduct
Sets the product type ID of the product.
Parameters
- $id : IdType
-
Product type ID.
Return values
GXEngineProduct —setQuantity()
Set Quantity
public
setQuantity(DecimalType $quantity) : GXEngineProduct
Sets a quantity for the product.
Parameters
- $quantity : DecimalType
-
The quantity to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setQuantityUnitId()
Set Quantity Uniz ID
public
setQuantityUnitId(IdType $id) : ProductInterface
Sets the quantity unit ID of a product.
Parameters
- $id : IdType
-
The quantity unit ID to set.
Return values
ProductInterface —Same instance for chained method calls.
setSettings()
Sets a product setting object
public
setSettings(ProductSettingsInterface $productSettings) : GXEngineProduct
Parameters
- $productSettings : ProductSettingsInterface
Return values
GXEngineProduct —Same instance for chained method calls.
setShippingCosts()
Set Shipping Costs
public
setShippingCosts(DecimalType $price) : GXEngineProduct
Sets the shipping costs of a product.
Parameters
- $price : DecimalType
-
The shipping costs to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setShippingTimeId()
Set Shipping Time ID
public
setShippingTimeId(IdType $id) : GXEngineProduct
Sets the shipping time ID of a product.
Parameters
- $id : IdType
-
The shipping time ID to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setShortDescription()
Set Short Description
public
setShortDescription(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the products description.
Parameters
- $text : StringType
-
The short description.
- $language : LanguageCode
-
The language code for the short description.
Return values
GXEngineProduct —Same instance for chained method calls.
setSortOrder()
Set Sort Order
public
setSortOrder(IntType $sortOrder) : GXEngineProduct
Sets the sort order of the product.
Parameters
- $sortOrder : IntType
-
The sort order.
Return values
GXEngineProduct —Same instance for chained method calls.
setSpecialOfferId()
Sets Special offer id.
public
setSpecialOfferId(IdType $id) : GXEngineProduct
Parameters
- $id : IdType
-
The special offer id.
Return values
GXEngineProduct —Same instance for chained method calls.
setTaxClassId()
Set Tax Class ID
public
setTaxClassId(IdType $id) : GXEngineProduct
Sets a tax class ID for the product.
Parameters
- $id : IdType
-
The tax class ID to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setUrl()
Set Product's Info URL
public
setUrl(StringType $url, LanguageCode $language) : GXEngineProduct
Sets the product's info URL (e.g. homepage of the manufacturer).
Parameters
- $url : StringType
-
The URL.
- $language : LanguageCode
-
The language code.
Tags
Return values
GXEngineProduct —Same instance for chained method calls.
setUrlKeywords()
Set URL Keywords
public
setUrlKeywords(StringType $text, LanguageCode $language) : GXEngineProduct
Sets the products URL Keywords.
Parameters
- $text : StringType
-
The URL Keywords.
- $language : LanguageCode
-
The language code for the URL keywords.
Return values
GXEngineProduct —Same instance for chained method calls.
setUrlRewrite()
Set URL rewrite
public
setUrlRewrite(UrlRewrite $urlRewrite, LanguageCode $language) : GXEngineProduct
Sets the products URL rewrite for the provided language code.
Parameters
- $urlRewrite : UrlRewrite
-
The URL rewrite instance.
- $language : LanguageCode
-
The language code for the URL keywords.
Return values
GXEngineProduct —Same instance for chained method calls.
setUrlRewrites()
Set URL rewrites
public
setUrlRewrites(UrlRewriteCollection $urlRewrites) : GXEngineProduct
Sets the products URL rewrites.
Parameters
- $urlRewrites : UrlRewriteCollection
-
The URL rewrites.
Return values
GXEngineProduct —Same instance for chained method calls.
setViewedCount()
Set Viewed Count
public
setViewedCount(IntType $count, LanguageCode $language) : GXEngineProduct
Sets the viewed count.
Parameters
- $count : IntType
-
The amount of views.
- $language : LanguageCode
-
The language code for the product name.
Return values
GXEngineProduct —Same instance for chained method calls.
setVpeActive()
Set VPE Active
public
setVpeActive(BoolType $status) : GXEngineProduct
Activates or deactivates VPE for a product.
Parameters
- $status : BoolType
-
Should VPE be activated?
Return values
GXEngineProduct —Same instance for chained method calls.
setVpeId()
Set VPE ID
public
setVpeId(IdType $id) : GXEngineProduct
Sets the VPE ID of a product.
Parameters
- $id : IdType
-
The VPE ID to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setVpeValue()
Set VPE Value
public
setVpeValue(DecimalType $vpeValue) : GXEngineProduct
Sets the VPE value of a product.
Parameters
- $vpeValue : DecimalType
-
The VPE value to set.
Return values
GXEngineProduct —Same instance for chained method calls.
setWeight()
Set Weight
public
setWeight(DecimalType $weight) : GXEngineProduct
Sets the weight of a product.
Parameters
- $weight : DecimalType
-
The weight to set.
Return values
GXEngineProduct —Same instance for chained method calls.