Anzeigemanager für die Variantenauswahl im Shop.

@return TdbShopVariantDisplayHandler
346158
public function &GetFieldShopVariantDisplayHandler()
    {
        $oItem = $this->GetFromInternalCache('oLookupshop_variant_display_handler_id');
        if (is_null($oItem)) {
            $oItem = TdbShopVariantDisplayHandler::GetInstance($this->fieldShopVariantDisplayHandlerId);
            $this->SetInternalCache('oLookupshop_variant_display_handler_id', $oItem);
        }

        return $oItem;
    }
1095864
public function getArtPerPageForm()
    {
        if (($sValue = $this->getViewConfigParam('artperpageform')) === null) {
            $sValue = $this->getConfig()->getShopCurrentUrl();
            $this->setViewConfigParam('artperpageform', $sValue);
        }

        return $sValue;
    }
1223823
public function renderItemsPlain()
    {
        $values     = [];
        $value      = $this->varValue;
        $idProperty = $this->idProperty ?: 'id';

        if ('radio' === $this->fieldType && !empty($value)) {
            $value = (array) $value;
        }

        if (\is_array($value) && !empty($value)) {
            $environment = $this->getEnvironment();
            $dataDriver  = $environment->getDataProvider();
            $config      = $environment->getBaseConfigRegistry()->getBaseConfig();
            $filter      = FilterBuilder::fromArrayForRoot()
                ->getFilter()
                ->andPropertyValueIn($idProperty, $value)
                ->getAllAsArray();

            $config->setFilter($filter);

            // Set the sort field.
            if ($this->orderField && $dataDriver->fieldExists($this->orderField)) {
                $config->setSorting([$this->orderField => 'ASC']);
            }

            foreach ($dataDriver->fetchAll($config) as $model) {
                $formatted        = $this->formatModel($model, false);
                $idValue          = $model->getProperty($idProperty);
                $values[$idValue] = $formatted[0]['content'];
            }

            // Apply a custom sort order.
            $values = $this->sortValues($values);
        }

        return $values;
    }
183045
public function get()
	{
		$view = $this->getView();

		$view->variantData = $this->toArray( $view->item );
		$view->variantBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->variantBody .= $client->get();
		}

		return $this->render( $view );
	}
622225
protected function _getListDisplayType()
    {
        $listDisplayType = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('ldtype');

        if (is_null($listDisplayType)) {
            $listDisplayType = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sDefaultListDisplayType');
        }

        return $listDisplayType;
    }
226901
public function getCustomListDisplayType()
    {
        if ($this->_sCustomListDisplayType == null) {
            $this->_sCustomListDisplayType = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('ldtype');

            if (!$this->_sCustomListDisplayType) {
                $this->_sCustomListDisplayType = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('ldtype');
            }
        }

        return $this->_sCustomListDisplayType;
    }
1143669
public function isMdVariant()
    {
        $oMdVariant = oxNew(\OxidEsales\Eshop\Application\Model\VariantHandler::class);

        return $oMdVariant->isMdVariant($this);
    }
1069620
protected function process()
    {

        // prepare the store view code
        $this->prepareStoreViewCode($this->getRow());

        // return immediately if we're have no store view code set
        if (StoreViewCodes::ADMIN !== $this->getStoreViewCode(StoreViewCodes::ADMIN)) {
            return;
        }

        // prepare, initialize and persist the product bundle selection data
        $productBundleSelection = $this->initializeBundleSelection($this->prepareAttributes());
        $selectionId = $this->persistProductBundleSelection($productBundleSelection);

        // add the mapping for the child SKU => selection ID
        $this->addChildSkuSelectionIdMapping($this->getValue(ColumnKeys::BUNDLE_VALUE_SKU), $selectionId);
    }
1137543
public function getDisplayValue()
    {
        $controller = $this->getController();
        if (method_exists($controller, 'getDisplayValue')) {
            return $controller->getDisplayValue();
        }

        if ($this->getValueObject()) {
            return (string) $this->getValueObject();
        }

        // Legacy support.
        return $controller->getValue();
    }
275926
public function getPicturesProduct()
    {
        $variantSelections = $this->getVariantSelections();
        if ($variantSelections && $variantSelections['oActiveVariant'] && !$variantSelections['blPerfectFit']) {
            return $variantSelections['oActiveVariant'];
        }

        return $this->getProduct();
    }
910811
protected function returnViewForSingleDisplay()
    {
        $record = $this->modelRepository->first();

        if ($record) {
            return $this->edit($record->getKey());
        }

        return $this->create();
    }
699363
public function isMdVariantView()
    {
        if ($this->_blMdView === null) {
            $this->_blMdView = false;
            if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blUseMultidimensionVariants')) {
                $iMaxMdDepth = $this->getProduct()->getMdVariants()->getMaxDepth();
                $this->_blMdView = ($iMaxMdDepth > 1);
            }
        }

        return $this->_blMdView;
    }
423847
public function getBought()
    {
        $items = Item::join('seller')
            ->leftJoin('purchases')
            ->where('purchases.user_id', Auth::user()->userId);

        if (mustard_loaded('auctions')) {
            $items->leftJoin('winningBid')
                ->orWhere('bids.user_id', Auth::user()->userId);
        }

        $table = new InventoryBought($items);

        return view('mustard::inventory.bought', [
            'table' => $table,
            'items' => $table->paginate(),
        ]);
    }
618954
protected function fetchItemVariantHeadline()
    {
        if ($this->getOption('is_section_header') || substr($this->getRouteName(), 0, 7) == '.header')
        {
            $this->isSectionHeader = true;
        }

        return $this;
    }
826825
public function getDelCostVat()
    {
        $dDelVAT = $this->getCosts('oxdelivery')->getVatValue();

        // blShowVATForDelivery option will be used, only for displaying, but not calculation
        if ($dDelVAT > 0 && \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blShowVATForDelivery')) {
            return \OxidEsales\Eshop\Core\Registry::getLang()->formatCurrency($dDelVAT, $this->getBasketCurrency());
        }

        return false;
    }
1240589
protected function getTransactionManager(\TdbShopOrder $order)
    {
        if (null !== $this->transactionManager) {
            return $this->transactionManager;
        }

        return new \TPkgShopPaymentTransactionManager($order);
    }
63620
public function getBruttoPrice()
    {
        if ($this->isNettoMode()) {
            return $this->getNettoPrice() + $this->getVatValue();
        } else {
            return \OxidEsales\Eshop\Core\Registry::getUtils()->fRound($this->_dBrutto);
        }
    }