protected function initializeBundleSelectionPrice(array $attr)
    {

        // load the store view code
        $storeViewCode = $this->getStoreViewCode(StoreViewCodes::ADMIN);

        // load the store/website ID
        $store = $this->getStoreByStoreCode($storeViewCode);
        $websiteId = $store[MemberNames::WEBSITE_ID];

        // load parent product ID
        $parentProductId = $this->mapSku($this->getValue(ColumnKeys::BUNDLE_PARENT_SKU));

        // load the selection ID for the child SKU
        $selectionId = $this->getChildSkuSelectionMapping($this->getValue(ColumnKeys::BUNDLE_VALUE_SKU));

        // try to load the bundle selection price with the passed selection/parent product/website ID
        if ($entity = $this->loadBundleSelectionPrice($selectionId, $parentProductId, $websiteId)) {
            return $this->mergeEntity($entity, $attr);
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeBundleSelectionPrice(array $attr)
    {

        // load the store view code
        $storeViewCode = $this->getStoreViewCode(StoreViewCodes::ADMIN);

        // load the store/website ID
        $store = $this->getStoreByStoreCode($storeViewCode);
        $websiteId = $store[MemberNames::WEBSITE_ID];

        // load parent product ID
        $parentProductId = $this->mapSku($this->getValue(ColumnKeys::BUNDLE_PARENT_SKU));

        // load the selection ID for the child SKU
        $selectionId = $this->getChildSkuSelectionMapping($this->getValue(ColumnKeys::BUNDLE_VALUE_SKU));

        // try to load the bundle selection price with the passed selection/parent product/website ID
        if ($entity = $this->loadBundleSelectionPrice($selectionId, $parentProductId, $websiteId)) {
            return $this->mergeEntity($entity, $attr);
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeBundleSelectionPrice ( array $ attr ) { // load the store view code $ storeViewCode = $ this -> getStoreViewCode ( StoreViewCodes :: ADMIN ) ; // load the store/website ID $ store = $ this -> getStoreByStoreCode ( $ storeViewCode ) ; $ websiteId = $ store [ MemberNames :: WEBSITE_ID ] ; // load parent product ID $ parentProductId = $ this -> mapSku ( $ this -> getValue ( ColumnKeys :: BUNDLE_PARENT_SKU ) ) ; // load the selection ID for the child SKU $ selectionId = $ this -> getChildSkuSelectionMapping ( $ this -> getValue ( ColumnKeys :: BUNDLE_VALUE_SKU ) ) ; // try to load the bundle selection price with the passed selection/parent product/website ID if ( $ entity = $ this -> loadBundleSelectionPrice ( $ selectionId , $ parentProductId , $ websiteId ) ) { return $ this -> mergeEntity ( $ entity , $ attr ) ; } // simply return the attributes return $ attr ; }
Initialize the bundle selection price with the passed attributes and returns an instance.

@param array $attr The bundle selection price attributes

@return array The initialized bundle selection price
Initialize the bundle selection price with the passed attributes and returns an instance .