Esempio n. 1
0
 /**
  * Return product options.
  *
  * @param InjectableFixture $product [optional]
  * @return array
  */
 public function getOptions(InjectableFixture $product = null)
 {
     $options['bundle_options'] = $this->getBundleBlock()->getOptions($product);
     $options += parent::getOptions($product);
     return $options;
 }
 /**
  * Return product options.
  *
  * @param InjectableFixture $product [optional]
  * @return array
  */
 public function getOptions(InjectableFixture $product = null)
 {
     $options = ['configurable_options' => $this->getConfigurableOptionsBlock()->getOptions($product)];
     $options += parent::getOptions($product);
     return $options;
 }
Esempio n. 3
0
 /**
  * Return product options.
  *
  * @param InjectableFixture $product
  * @return array
  */
 public function getOptions(InjectableFixture $product)
 {
     $downloadableOptions = [];
     if ($this->_rootElement->find($this->blockDownloadableLinks)->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);
 }