$id_attribute_group
$id_attribute_group : integer
checkAttributeQty(integer $id_product_attribute, integer $qty, \Shop $shop = null) : boolean
Get quantity for a given attribute combination Check if quantity is enough to deserve customer
integer | $id_product_attribute | Product attribute combination id |
integer | $qty | Quantity needed |
\Shop | $shop |
Quantity is available or not
updateQtyProduct( $arr) : boolean
Update array with veritable quantity
$arr |
None found |
isColorAttribute() : boolean
Return true if attribute is color type
acces |
public |
---|
getAttributeMinimalQty(integer $id_product_attribute) : mixed
Get minimal quantity for product with attributes quantity
integer | $id_product_attribute |
Minimal Quantity or false
acces |
public static |
---|
updatePosition(boolean $way, integer $position) : boolean
Move an attribute inside its group
boolean | $way | Up (1) or Down (0) |
integer | $position |
Update result
None found |
cleanPositions(integer $id_attribute_group, boolean $use_last_attribute = true) : boolean
Reorder attribute position in group $id_attribute_group.
Call it after deleting an attribute from a group.
integer | $id_attribute_group | |
boolean | $use_last_attribute |
$return
None found |