StoredProductInterface

Extends \ProductInterface, \AddonValueContainerInterface

Interface StoredProductInterface

category

System

package

Product

subpackage

Interfaces

Methods

Merges the existing addon values with new ones.

addAddonValues(\KeyValueCollection $addonValues) 
inherited

Arguments

$addonValues

\KeyValueCollection

Contains the new addon values to be merged with the existing ones.

Deletes a specific addon value entry by key.

deleteAddonValue(\StringType $key) 
inherited

Arguments

$key

\StringType

Addon key.

Get Added Date Time

getAddedDateTime() : \DateTime
inherited

Returns the added date time of the product.

Response

\DateTime

The added date time.

Returns a product's additional images.

getAdditionalImages() : \ProductImageCollection
inherited

Returns a specific addon value by providing its key.

getAddonValue(\StringType $key) : string
inherited

Arguments

$key

\StringType

Addon key.

Response

string

Returns the addon value container ID.

getAddonValueContainerId() : integer
inherited

Response

integer

Addon value container ID.

Returns all the addon values as a KeyValueCollection.

getAddonValues() : \KeyValueCollection
inherited

Response

\KeyValueCollection

Addons key value collection.

Get Available Date Time

getAvailableDateTime() : \DateTime
inherited

Returns the available date time of the product.

Response

\DateTime

The available date time.

Get Checkout Information

getCheckoutInformation(\LanguageCode $language) : string
inherited

Returns the checkout information of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The checkout information of the product.

Get Description

getDescription(\LanguageCode $language) : string
inherited

Returns the description of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The description of the product.

Get Discount Allowed

getDiscountAllowed() : float
inherited

Returns the allowed discount.

Response

float

The allowed discount.

Get EAN

getEan() : string
inherited

Returns the EAN of the product.

Response

string

The EAN of the product.

Returns the image container of the product.

getImageContainer() : \ProductImageContainer
inherited

Response

\ProductImageContainer

Product image container.

Get Info Url

getInfoUrl(\LanguageCode $language) : string
inherited

Returns the URL for further information of the product (e.g. manufacturer homepage), depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the URL to return.

Response

string

Product's Manufacturer URL

Get Keywords

getKeywords(\LanguageCode $language) : string
inherited

Returns the keywords of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The keywords of the product.

Get Last Modified Date Time

getLastModifiedDateTime() : \DateTime
inherited

Returns the last modified date time.

Response

\DateTime

The last modified date time.

Get Manufacturer ID

getManufacturerId() : integer
inherited

Returns the manufacturer ID.

Response

integer

The manufacturer ID.

Get Meta Description

getMetaDescription(\LanguageCode $language) : string
inherited

Returns the meta description of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The meta description of the product.

Get Meta Keywords

getMetaKeywords(\LanguageCode $language) : string
inherited

Returns the meta keywords of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The meta keywords of the product.

Get Meta Title

getMetaTitle(\LanguageCode $language) : string
inherited

Returns the meta title of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The meta title of the product.

Get Name

getName(\LanguageCode $language) : string
inherited

Returns the name of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The name of the product.

Get Ordered Count

getOrderedCount() : integer
inherited

Returns the ordered count of the product.

Response

integer

The ordered count.

Get Price

getPrice() : float
inherited

Returns the price of a product.

Response

float

The price of the product.

Returns a product's primary image.

getPrimaryImage() : \ProductImage
inherited

Response

\ProductImage

Get Product ID.

getProductId() : integer

Returns the ID of the stored product.

Response

integer

The product ID.

Get Product Model

getProductModel() : string
inherited

Returns the product model.

Response

string

The product model.

Get Product Type ID.

getProductTypeId() : integer
inherited

Returns the product type ID.

Response

integer

The product type ID.

Get Quantity

getQuantity() : float
inherited

Returns the quantity of the product.

Response

float

The quantity of the product.

Get Quantity Unit ID

getQuantityUnitId() : integer
inherited

Returns the quantity unit ID.

Response

integer

The quantity unit ID.

Get Product Settings.

getSettings() : \ProductSettingsInterface
inherited

Returns the product settings.

Response

\ProductSettingsInterface

Get Shipping Costs

getShippingCosts() : float
inherited

Returns the shipping cost of the product.

Response

float

The shipping costs of the product.

Get Shipping Time ID

getShippingTimeId() : integer
inherited

Returns the shipping time ID of the product.

Response

integer

The shipping time ID.

Get Short Description

getShortDescription(\LanguageCode $language) : string
inherited

Returns the short description of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The short description of the product.

Get Sort Order

getSortOrder() : integer
inherited

Returns an integer which represents a specific sort order.

Response

integer

The sort order.

Returns the Special offer id.

getSpecialOfferId() : integer
inherited

Response

integer

The special offer id.

Get Tax Class ID

getTaxClassId() : integer
inherited

Returns the tax class ID of the product.

Response

integer

The tax class ID.

Get Info Url

getUrl(\LanguageCode $language) : string
inherited

Returns the URL for further information of the product (e.g. manufacturer homepage), depending on the provided language code.

deprecated

Use ::getInfoUrl() instead. Will be removed in GX3.11.

Arguments

$language

\LanguageCode

The language code of the URL to return.

Response

string

Product's Manufacturer URL

Get URL Keywords

getUrlKeywords(\LanguageCode $language) : string
inherited

Returns the URL keywords of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to return.

Response

string

The URL keywords of the product.

Get URL rewrite

getUrlRewrite(\LanguageCode $language) : \UrlRewrite
inherited

Returns the URL rewrite of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the URL rewrite to be return.

Response

\UrlRewrite

The URL rewrite of the product.

Get URL rewrites

getUrlRewrites() : \UrlRewriteCollection
inherited

Returns the URL rewrites of the product.

Response

\UrlRewriteCollection

The URL rewrites of the product.

Get View Count

getViewedCount(\LanguageCode $language) : integer
inherited

Returns the current view count of the product, depending on the provided language code.

Arguments

$language

\LanguageCode

The language code of the language to be returned.

Response

integer

The current view count.

Get VPE ID.

getVpeId() : integer
inherited

Returns the VPE ID.

Response

integer

VPE ID.

Get VPE Value

getVpeValue() : float
inherited

Returns the VPE value.

Response

float

The VPE value.

Get Weight

getWeight() : float
inherited

Returns the weight of the product.

Response

float

The weight of the product.

Is Active

isActive() : boolean
inherited

Checks if a product is active.

Response

boolean

Is FSK 18

isFsk18() : boolean
inherited

Checks if the product is only available for FSK 18.

Response

boolean

Is the product FSK18?

Is VPE Active

isVpeActive() : boolean
inherited

Checks if VPE is active on the product.

Response

boolean

Is VPE active on the product?

Set Active

setActive(\BoolType $status) : \ProductInterface
inherited

Activates or deactivates a product status.

Arguments

$status

\BoolType

Should the product status be activated?

Response

\ProductInterface

Same instance for chained method calls.

Sets the added date time.

setAddedDateTime(\DateTime $date) : \ProductInterface
inherited

Arguments

$date

\DateTime

Added date time to set.

Response

\ProductInterface

Same instance for chained method calls.

Sets the value of a specific addon key.

setAddonValue(\StringType $key, \StringType $value) 
inherited

Arguments

$key

\StringType

The addon key to be processed.

$value

\StringType

The new value of the addon entry.

Set Available Date Time

setAvailableDateTime(\DateTime $date) : \ProductInterface
inherited

Sets an available date time.

Arguments

$date

\DateTime

The date time to add.

Response

\ProductInterface

Same instance for chained method calls.

Set Checkout Information

setCheckoutInformation(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the checkout information.

Arguments

$text

\StringType

The checkout information.

$language

\LanguageCode

The language code for the checkout information.

Response

\ProductInterface

Same instance for chained method calls.

Set Description

setDescription(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the products description.

Arguments

$text

\StringType

The description.

$language

\LanguageCode

The language code for the description.

Response

\ProductInterface

Same instance for chained method calls.

Set Discount Allowed

setDiscountAllowed(\DecimalType $discount) : \ProductInterface
inherited

Sets the allowed discount of a product.

Arguments

$discount

\DecimalType

The discount to set.

Response

\ProductInterface

Same instance for chained method calls.

Set EAN

setEan(\StringType $ean) : \ProductInterface
inherited

Sets a EAN for the product.

Arguments

$ean

\StringType

The EAN to set.

Response

\ProductInterface

Same instance for chained method calls.

Set FSK 18

setFsk18(\BoolType $status) : \ProductInterface
inherited

Activates or deactivates FSK18 for a product.

Arguments

$status

\BoolType

Should FSK be activated?

Response

\ProductInterface

Same instance for chained method calls.

Set Image Container

setImageContainer(\ProductImageContainerInterface $images) : \ProductInterface
inherited

Sets the image container of a product.

Arguments

$images

\ProductImageContainerInterface

Product image container to set.

Response

\ProductInterface

Same instance for chained method calls.

SSet Product's Info URL

setInfoUrl(\StringType $url, \LanguageCode $language) : \GXEngineProduct
inherited

Sets the product's info URL (e.g. homepage of the manufacturer).

Arguments

$url

\StringType

The URL.

$language

\LanguageCode

The language code.

Response

\GXEngineProduct

Same instance for chained method calls.

Set Keywords

setKeywords(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the products keywords.

Arguments

$text

\StringType

The keywords.

$language

\LanguageCode

The language code for the keywords.

Response

\ProductInterface

Same instance for chained method calls.

Set Last Modified Date Time

setLastModifiedDateTime(\DateTime $date) : \ProductInterface
inherited

Sets the last modified date time.

Arguments

$date

\DateTime

The last modified date time.

Response

\ProductInterface

Same instance for chained method calls.

Set Manufacturer ID

setManufacturerId(\IdType $id) : \ProductInterface
inherited

Sets the manufacturer ID of a product.

Arguments

$id

\IdType

The manufacturer ID to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Meta description.

setMetaDescription(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the products meta description.

Arguments

$text

\StringType

Meta description to set.

$language

\LanguageCode

Language code for the meta description.

Response

\ProductInterface

Same instance for chained method calls.

Set Meta Keywords

setMetaKeywords(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the products meta keywords.

Arguments

$text

\StringType

The meta keywords.

$language

\LanguageCode

The language code for the meta keywords.

Response

\ProductInterface

Same instance for chained method calls.

Set Meta title.

setMetaTitle(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the meta title.

Arguments

$text

\StringType

Meta title to set.

$language

\LanguageCode

Language code of the meta title.

Response

\ProductInterface

Same instance for chained method calls.

Set Name

setName(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the products name.

Arguments

$text

\StringType

The name of the product.

$language

\LanguageCode

The language code for the product name.

Response

\ProductInterface

Same instance for chained method calls.

Set Ordered Count

setOrderedCount(\IntType $count) : \ProductInterface
inherited

Sets the ordered count.

Arguments

$count

\IntType

The ordered count.

Response

\ProductInterface

Same instance for chained method calls.

Set Price

setPrice(\DecimalType $price) : \ProductInterface
inherited

Sets a price of the product.

Arguments

$price

\DecimalType

The price to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Product Model

setProductModel(\StringType $model) : \ProductInterface
inherited

Set the product model.

Arguments

$model

\StringType

The product model.

Response

\ProductInterface

Same instance for chained method calls.

Set Product Type ID.

setProductTypeId(\IdType $id) : \ProductInterface
inherited

Sets the product type ID of the product.

Arguments

$id

\IdType

Product type ID to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Quantity

setQuantity(\DecimalType $quantity) : \ProductInterface
inherited

Sets a quantity for the product.

Arguments

$quantity

\DecimalType

The quantity to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Quantity Uniz ID

setQuantityUnitId(\IdType $id) : \ProductInterface
inherited

Sets the quantity unit ID of a product.

Arguments

$id

\IdType

The quantity unit ID to set.

Response

\ProductInterface

Same instance for chained method calls.

Sets the settings of the product.

setSettings(\ProductSettingsInterface $productSettings) : \ProductInterface
inherited

Arguments

$productSettings

\ProductSettingsInterface

The settings of the product.

Response

\ProductInterface

Same instance for chained method calls.

Set Shipping Costs

setShippingCosts(\DecimalType $price) : \ProductInterface
inherited

Sets the shipping costs of a product.

Arguments

$price

\DecimalType

The shipping costs to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Shipping Time ID

setShippingTimeId(\IdType $id) : \ProductInterface
inherited

Sets the shipping time ID of a product.

Arguments

$id

\IdType

The shipping time ID to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Short Description

setShortDescription(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the products short description.

Arguments

$text

\StringType

Short description to set.

$language

\LanguageCode

The language code for the short description.

Response

\ProductInterface

Same instance for chained method calls.

Set Sort Order

setSortOrder(\IntType $sortOrder) : \ProductInterface
inherited

Sets the sort order of the product.

Arguments

$sortOrder

\IntType

The sort order.

Response

\ProductInterface

Same instance for chained method calls.

Sets Special offer id.

setSpecialOfferId(\IdType $id) : \ProductInterface
inherited

Arguments

$id

\IdType

The special offer id.

Response

\ProductInterface

Same instance for chained method calls.

Set Tax Class ID

setTaxClassId(\IdType $id) : \ProductInterface
inherited

Sets a tax class ID for the product.

Arguments

$id

\IdType

The tax class ID to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Product's Info URL

setUrl(\StringType $url, \LanguageCode $language) : \GXEngineProduct
inherited

Sets the product's info URL (e.g. homepage of the manufacturer).

deprecated

Use ::setInfoUrl() instead. Will be removed in GX3.11.

Arguments

$url

\StringType

The URL.

$language

\LanguageCode

The language code.

Response

\GXEngineProduct

Same instance for chained method calls.

Set URL Keywords

setUrlKeywords(\StringType $text, \LanguageCode $language) : \ProductInterface
inherited

Sets the products URL Keywords.

Arguments

$text

\StringType

The URL.

$language

\LanguageCode

The language code for the URL keywords.

Response

\ProductInterface

Same instance for chained method calls.

Set URL rewrite

setUrlRewrite(\UrlRewrite $urlRewrite, \LanguageCode $language) : \GXEngineProduct
inherited

Sets the products URL rewrite for the provided language code.

Arguments

$urlRewrite

\UrlRewrite

The URL rewrite instance.

$language

\LanguageCode

The language code for the URL keywords.

Response

\GXEngineProduct

Same instance for chained method calls.

Set URL rewrites

setUrlRewrites(\UrlRewriteCollection $urlRewrites) : \GXEngineProduct
inherited

Sets the products URL rewrites.

Arguments

$urlRewrites

\UrlRewriteCollection

The URL rewrites.

Response

\GXEngineProduct

Same instance for chained method calls.

Set Viewed Count

setViewedCount(\IntType $count, \LanguageCode $language) : \ProductInterface
inherited

Sets the viewed count of a product.

Arguments

$count

\IntType

The amount of views.

$language

\LanguageCode

The language code for the product name.

Response

\ProductInterface

Same instance for chained method calls.

Set VPE Active

setVpeActive(\BoolType $status) : \ProductInterface
inherited

Activates or deactivates VPE for a product.

Arguments

$status

\BoolType

Should VPE be activated?

Response

\ProductInterface

Same instance for chained method calls.

Set VPE ID

setVpeId(\IdType $id) : \ProductInterface
inherited

Sets the VPE ID of a product.

Arguments

$id

\IdType

The VPE ID to set.

Response

\ProductInterface

Same instance for chained method calls.

Set VPE Value

setVpeValue(\DecimalType $vpeValue) : \ProductInterface
inherited

Sets the VPE value of a product.

Arguments

$vpeValue

\DecimalType

The VPE value to set.

Response

\ProductInterface

Same instance for chained method calls.

Set Weight

setWeight(\DecimalType $weight) : \ProductInterface
inherited

Sets the weight of a product.

Arguments

$weight

\DecimalType

The weight to set.

Response

\ProductInterface

Same instance for chained method calls.