Properties

$cachePackItems

$cachePackItems : 

Type

$cacheIsPack

$cacheIsPack : 

Type

$cacheIsPacked

$cacheIsPacked : 

Type

Methods

isPack()

isPack(  $id_product) : boolean

Is product a pack?

Parameters

$id_product

Returns

boolean

isPacked()

isPacked(  $id_product) : boolean

Is product in a pack?

Parameters

$id_product

Returns

boolean

noPackPrice()

noPackPrice(  $id_product) 

Parameters

$id_product

noPackWholesalePrice()

noPackWholesalePrice(  $id_product) 

Parameters

$id_product

getItems()

getItems(  $id_product,   $id_lang) 

Parameters

$id_product
$id_lang

isInStock()

isInStock(  $id_product) 

Parameters

$id_product

getItemTable()

getItemTable(  $id_product,   $id_lang,   $full = false) 

Parameters

$id_product
$id_lang
$full

getPacksTable()

getPacksTable(  $id_product,   $id_lang,   $full = false,   $limit = null) 

Parameters

$id_product
$id_lang
$full
$limit

deleteItems()

deleteItems(  $id_product) 

Parameters

$id_product

addItem()

addItem(integer  $id_product, integer  $id_item, integer  $qty,   $id_attribute_item) : boolean

Add an item to the pack

Parameters

integer $id_product
integer $id_item
integer $qty
$id_attribute_item

Returns

boolean —

true if everything was fine

duplicate()

duplicate(  $id_product_old,   $id_product_new) 

Parameters

$id_product_old
$id_product_new

isFeatureActive()

isFeatureActive() : boolean

This method is allow to know if a feature is used or active

Returns

boolean

isCurrentlyUsed()

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

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

Parameters

$table
$has_active_column

Returns

boolean

usesAdvancedStockManagement()

usesAdvancedStockManagement(integer  $id_product) : boolean

For a given pack, tells if it has at least one product using the advanced stock management

Parameters

integer $id_product

id_pack

Returns

boolean

allUsesAdvancedStockManagement()

allUsesAdvancedStockManagement(integer  $id_product) : boolean

For a given pack, tells if all products using the advanced stock management

Parameters

integer $id_product

id_pack

Returns

boolean