10 use Magento\Directory\Model\CurrencyFactory;
49 CurrencyFactory $currencyFactory,
52 $this->_catalogSearchAdvanced = $catalogSearchAdvanced;
53 $this->_currencyFactory = $currencyFactory;
54 parent::__construct($context,
$data);
63 if ($breadcrumbs = $this->
getLayout()->getBlock(
'breadcrumbs')) {
64 $breadcrumbs->addCrumb(
67 'label' =>
__(
'Home'),
68 'title' =>
__(
'Go to Home Page'),
69 'link' => $this->_storeManager->getStore()->getBaseUrl()
73 [
'label' =>
__(
'Catalog Advanced Search')]
76 return parent::_prepareLayout();
86 $attributes = $this->_catalogSearchAdvanced->getAttributes();
123 if (isset(
$value[$part])) {
140 $currencies = $this->
getData(
'_currencies');
141 if ($currencies ===
null) {
143 $codes = $this->_storeManager->getStore()->getAvailableCurrencyCodes(
true);
144 if (is_array($codes) && count($codes)) {
145 $rates = $this->_currencyFactory->create()->getCurrencyRates(
146 $this->_storeManager->getStore()->getBaseCurrency(),
150 foreach ($codes as
$code) {
157 $this->
setData(
'currencies', $currencies);
181 return $this->_storeManager->getStore()->getCurrentCurrencyCode();
192 $dataType =
$attribute->getBackend()->getType();
193 $inputType =
$attribute->getFrontend()->getInputType();
194 if ($inputType ==
'select' || $inputType ==
'multiselect') {
198 if ($inputType ==
'boolean') {
202 if ($inputType ==
'price') {
206 if ($dataType ==
'int' || $dataType ==
'decimal') {
210 if ($dataType ==
'datetime') {
232 $extra =
'multiple="multiple" size="4"';
235 array_unshift(
$options, [
'value' =>
'',
'label' =>
__(
'All')]);
264 [
'value' =>
'',
'label' =>
__(
'All')],
265 [
'value' =>
'1',
'label' =>
__(
'Yes')],
266 [
'value' =>
'0',
'label' =>
__(
'No')],
322 return $this->
getUrl(
'*/*/result');
340 $attribute->getAttributeCode() . ($part ==
'from' ?
'' :
'_' . $part)
348 $this->_localeDate->getDateFormat(\IntlDateFormatter::SHORT)
getData($key='', $index=null)
getUrl($route='', $params=[])
setData($key, $value=null)
if( $_orders &&count( $_orders))( 'Orders') ?></caption >< thead >< tr >< th scopeforeach( $_orders as $_order)(__( 'Order #')) ?>" class $extra
getViewFileUrl($fileId, array $params=[])
if(!isset($_GET['name'])) $name