Class Mage_Bundle_Model_Product_Type
Bundle Type Model
- Mage_Catalog_Model_Product_Type_Abstract
- Mage_Bundle_Model_Product_Type
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Bundle/Model/Product/Type.php
public
Varien_Object
|
|
public
array
|
#
getChildrenIds( integer $parentId, boolean $required = true )
Retrieve Required children ids Return grouped array, ex array( |
public
array
|
|
public
string
|
#
getSku(
Return product sku based on sku_type attribute |
public
decimal
|
#
getWeight(
Return product weight based on weight_type attribute |
public
boolean
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
#
getOptionsCollection(
Retrieve bundle option collection |
public
|
#
getSelectionsCollection( array $optionIds,
Retrive bundle selections collection based on used options |
public
|
#
updateQtyOption( array $options, Varien_Object $option, mixed $value,
Method is needed for specific actions to change given quote options values according current product type logic Example: the cataloginventory validation of decimal qty can change qty to int, so need to change quote item qty option value too. |
public
integer
|
#
prepareQuoteItemQty( mixed $qty,
Prepare Quote Item Quantity |
public
boolean
|
|
protected
array|string
|
#
_prepareProduct( Varien_Object $buyRequest,
Prepare product and its configuration to be added to some products list. Perform standard preparation process and then prepare of bundle selections options. |
public
string
|
|
public
|
#
getSelectionsByIds( array $selectionIds,
Retrieve bundle selections collection based on ids |
public
|
#
getOptionsByIds( array $optionIds,
Retrieve bundle options collection based on ids |
public
array
|
#
getOrderOptions(
Prepare additional options/information for order item which will be created from this product |
public
integer
|
#
shakeSelections(
Sort selections method for usort function Sort selections by option position, selection position and selection id |
public
boolean
|
|
public
boolean
|
#
getForceChildItemQtyChanges(
Allow for updates of chidren qty's |
public
array
|
#
getSearchableData(
Retrieve additional searchable data from type instance Using based on product id and store_id data |
public
|
|
public
array
|
#
getProductsToPurchaseByReqGroups(
Retrieve products divided into groups required to purchase At least one product in each group has to be purchased |
public
array
|
#
processBuyRequest(
Prepare selected options for bundle product |
public
boolean
|
|
public
boolean|null
|
#
isMapEnabledInOptions(
Check if Minimum Advertise Price is enabled at least in one option |
CALCULATE_CHILD,
CALCULATE_PARENT,
OPTION_PREFIX,
PROCESS_MODE_FULL,
PROCESS_MODE_LITE,
SHIPMENT_SEPARATELY,
SHIPMENT_TOGETHER
|
protected
boolean
|
$_isComposite | true |
#
Product is composite |
protected
string
|
$_keyOptionsCollection | '_cache_instance_options_collection' |
#
Cache key for Options Collection |
protected
string
|
$_keySelectionsCollection | '_cache_instance_selections_collection' |
#
Cache key for Selections Collection |
protected
string
|
$_keyUsedSelections | '_cache_instance_used_selections' |
#
Cache key for used Selections |
protected
string
|
$_keyUsedSelectionsIds | '_cache_instance_used_selections_ids' |
#
Cache key for used selections ids |
protected
string
|
$_keyUsedOptions | '_cache_instance_used_options' |
#
Cache key for used options |
protected
string
|
$_keyUsedOptionsIds | '_cache_instance_used_options_ids' |
#
Cache key for used options ids |
protected
boolean
|
$_canConfigure | true |
#
Product is configurable |
$_canUseQtyDecimals,
$_fileQueue,
$_typeId
|