Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function getHtml()
 {
     $checked = [];
     if ($this->getIndex()->hasProperty('include_category')) {
         $checked[] = 'include_category';
     }
     if ($this->getIndex()->hasProperty('include_bundled')) {
         $checked[] = 'include_bundled';
     }
     if ($this->getIndex()->hasProperty('include_id')) {
         $checked[] = 'include_id';
     }
     if ($this->getIndex()->hasProperty('include_custom_options')) {
         $checked[] = 'include_custom_options';
     }
     if ($this->getIndex()->hasProperty('out_of_stock_to_end')) {
         $checked[] = 'out_of_stock_to_end';
     }
     if ($this->getIndex()->hasProperty('only_active_categories')) {
         $checked[] = 'only_active_categories';
     }
     $this->addField('properties', 'checkboxes', ['name' => 'properties[]', 'label' => __('Options'), 'values' => ['include_category' => __('Search by parent categories names'), 'include_bundled' => __('Search by child products (for bundle, configurable products)'), 'include_id' => __('Search by product id'), 'include_custom_options' => __('Search by custom options'), 'out_of_stock_to_end' => __('Push "out of stock" products to the end'), 'only_active_categories' => __('Search only by active categories')], 'checked' => $checked]);
     return parent::getHtml();
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function getHtml()
 {
     $this->addField('ignored_pages', 'multiselect', ['name' => 'properties[ignored_pages]', 'label' => __('Ignored Pages'), 'required' => false, 'values' => $this->configSourcePage->toOptionArray(), 'value' => $this->getIndex()->getProperty('ignored_pages')]);
     return parent::getHtml();
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  */
 public function getHtml()
 {
     $this->addField('db_connection_name', 'text', ['name' => 'properties[db_connection_name]', 'label' => __('Database Connection Name'), 'required' => true, 'value' => $this->getIndex()->getProperty('db_connection_name')]);
     $this->addField('db_table_prefix', 'text', ['name' => 'properties[db_table_prefix]', 'label' => __('Table Prefix'), 'required' => false, 'value' => $this->getIndex()->getProperty('db_table_prefix')]);
     return parent::getHtml();
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 public function getHtml()
 {
     $this->addField('url_template', 'text', ['name' => 'properties[url_template]', 'label' => __('Url Template'), 'required' => true, 'value' => $this->getIndex()->getProperty('url_template')]);
     return parent::getHtml();
 }