diff --git a/Block/Search.php b/Block/Search.php
index 5299788..8105b0e 100644
--- a/Block/Search.php
+++ b/Block/Search.php
@@ -210,7 +210,7 @@ protected function _prepareLayout()
private function getRetailerCollection()
{
$retailerCollection = $this->retailerCollectionFactory->create();
- $retailerCollection->addAttributeToSelect('*');
+ $retailerCollection->addAttributeToSelect(['name', 'contact_mail', 'contact_phone', 'contact_mail']);
$retailerCollection->addFieldToFilter('is_active', (int) true);
$retailerCollection->addOrder('name', 'asc');
diff --git a/Model/RetailerAddress/Source/Country.php b/Model/RetailerAddress/Source/Country.php
index ffb6ef6..3aeaa74 100644
--- a/Model/RetailerAddress/Source/Country.php
+++ b/Model/RetailerAddress/Source/Country.php
@@ -58,6 +58,7 @@ public function getAllOptions()
{
if ($this->_options === null) {
$this->_options = $this->countriesFactory->create()
+ ->loadByStore()
->toOptionArray();
}
diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml
new file mode 100644
index 0000000..836e4ff
--- /dev/null
+++ b/etc/adminhtml/system.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+ Above this limit, the list of stores will be not display
+
+
+
+
+
diff --git a/etc/config.xml b/etc/config.xml
index 68ae540..14d3b64 100644
--- a/etc/config.xml
+++ b/etc/config.xml
@@ -17,6 +17,11 @@
-->
+
+
+ stores
diff --git a/i18n/en_US.csv b/i18n/en_US.csv
index b677d2e..a536802 100644
--- a/i18n/en_US.csv
+++ b/i18n/en_US.csv
@@ -55,3 +55,6 @@ Longitude,Longitude
"Shop Search","Shop Search"
"View Shop Page","View Shop Page"
"Double-click on an opening hour range to delete it.","Double-click on an opening hour range to delete it."
+"Narrow your search to see store details","Narrow your search to see store details"
+"Maximum number of visible stores","Maximum number of visible stores"
+"Above this limit, the list of stores will be not display","Above this limit, the list of stores will be not display"
\ No newline at end of file
diff --git a/i18n/fr_FR.csv b/i18n/fr_FR.csv
index ec5af46..5197274 100644
--- a/i18n/fr_FR.csv
+++ b/i18n/fr_FR.csv
@@ -55,3 +55,6 @@ Longitude,Longitude
"Shop Search","Localiser un magasin"
"View Shop Page","Voir la page du magasin"
"Double-click on an opening hour range to delete it.","Double-cliquez sur une tranche horaire pour la supprimer."
+"Narrow your search to see store details","Affinez votre recherche pour voir le détail des magasins"
+"Maximum number of visible stores","Nombre maximum de magasins visible"
+"Above this limit, the list of stores will be not display","Au-delà de cette limite, la liste des magasins ne sera pas affichée"
diff --git a/view/frontend/web/css/source/_module.less b/view/frontend/web/css/source/_module.less
index d268c8e..2fd2870 100644
--- a/view/frontend/web/css/source/_module.less
+++ b/view/frontend/web/css/source/_module.less
@@ -317,6 +317,11 @@
background: #F0F0F0;
}
}
+
+ .max_stores_message {
+ margin: 0;
+ padding: 5px;
+ }
}
.shop-details {
diff --git a/view/frontend/web/js/model/store.js b/view/frontend/web/js/model/store.js
index 052156d..240f5f8 100644
--- a/view/frontend/web/js/model/store.js
+++ b/view/frontend/web/js/model/store.js
@@ -19,7 +19,7 @@ define([
initObservable: function () {
if (this.schedule) {
- this.schedule = ko.observable(new Schedule(this.schedule));
+ this.schedule = ko.observable(this.schedule);
}
return this;
diff --git a/view/frontend/web/template/retailer/search.html b/view/frontend/web/template/retailer/search.html
index ba845fb..0bc57ee 100644
--- a/view/frontend/web/template/retailer/search.html
+++ b/view/frontend/web/template/retailer/search.html
@@ -32,9 +32,16 @@
-