コード例 #1
0
ファイル: View.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * Return product options.
  *
  * @param FixtureInterface $product [optional]
  * @return array
  */
 public function getOptions(FixtureInterface $product = null)
 {
     $options = [];
     $this->clickCustomize();
     $options['bundle_options'] = $this->getBundleBlock()->getOptions($product);
     $options += parent::getOptions($product);
     return $options;
 }
コード例 #2
0
ファイル: View.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * Return product options
  *
  * @param FixtureInterface $product
  * @return array
  */
 public function getOptions(FixtureInterface $product)
 {
     $downloadableOptions = [];
     if ($this->_rootElement->find($this->blockDownloadableLinks, Locator::SELECTOR_XPATH)->isVisible()) {
         $downloadableOptions['downloadable_links'] = ['title' => $this->getDownloadableLinksBlock()->getTitle(), 'downloadable' => ['link' => $this->getDownloadableLinksBlock()->getLinks()]];
     }
     if ($this->_rootElement->find($this->blockDownloadableSamples)->isVisible()) {
         $downloadableOptions['downloadable_sample'] = ['title' => $this->getDownloadableSamplesBlock()->getTitle(), 'downloadable' => ['sample' => $this->getDownloadableSamplesBlock()->getLinks()]];
     }
     return ['downloadable_options' => $downloadableOptions] + parent::getOptions($product);
 }
コード例 #3
0
ファイル: View.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * Return product options
  *
  * @param FixtureInterface $product [optional]
  * @return array
  */
 public function getOptions(FixtureInterface $product = null)
 {
     $options = ['configurable_options' => $this->getConfigurableOptionsBlock()->getOptions($product)];
     $options += parent::getOptions($product);
     return $options;
 }
コード例 #4
0
ファイル: View.php プロジェクト: shabbirvividads/magento2
 /**
  * Return product options
  *
  * @param FixtureInterface $product
  * @return array
  */
 public function getOptions(FixtureInterface $product)
 {
     $groupedOptions = $this->getGroupedProductBlock()->getOptions($product);
     return ['grouped_options' => $groupedOptions] + parent::getOptions($product);
 }