Properties

$id_product

$id_product : 

Type

$reference

$reference : 

Type

$supplier_reference

$supplier_reference : 

Type

$location

$location : 

Type

$ean13

$ean13 : 

Type

$upc

$upc : 

Type

$wholesale_price

$wholesale_price : 

Type

$price

$price : 

Type

$unit_price_impact

$unit_price_impact : 

Type

$ecotax

$ecotax : 

Type

$minimal_quantity

$minimal_quantity : 

Type

$quantity

$quantity : 

Type

$weight

$weight : 

Type

$default_on

$default_on : 

Type

$available_date

$available_date : 

Type

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

delete()

delete() 

deleteFromSupplier()

deleteFromSupplier(  $id_product) 

Parameters

$id_product

add()

add(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

update()

update(  $null_values = false) 

Parameters

$null_values

deleteAssociations()

deleteAssociations() 

setAttributes()

setAttributes(  $ids_attribute) 

Parameters

$ids_attribute

setWsProductOptionValues()

setWsProductOptionValues(  $values) 

Parameters

$values

getWsProductOptionValues()

getWsProductOptionValues() 

getWsImages()

getWsImages() 

setImages()

setImages(  $ids_image) 

Parameters

$ids_image

setWsImages()

setWsImages(  $values) 

Parameters

$values

getAttributesName()

getAttributesName(  $id_lang) 

Parameters

$id_lang

isFeatureActive()

isFeatureActive() : boolean

This method is allow to know if a feature is active

Returns

boolean

isCurrentlyUsed()

isCurrentlyUsed(  $table = null,   $has_active_column = false) : boolean

This method is allow to know if a Combination entity is currently used

Parameters

$table
$has_active_column

Returns

boolean

getIdByReference()

getIdByReference(integer  $id_product, string  $reference) : integer

For a given product_attribute reference, returns the corresponding id

Parameters

integer $id_product
string $reference

Returns

integer —

id

getColorsAttributes()

getColorsAttributes() 

getPrice()

getPrice(integer  $id_product_attribute) : float

Retrive the price of combination

Parameters

integer $id_product_attribute

Returns

float —

mixed