Quelques corrections + init du module ClickAndCollect

This commit is contained in:
2021-03-11 18:47:03 +01:00
parent 2e82f5643a
commit 57e69ddd2f
48 changed files with 2224 additions and 57 deletions

View File

@@ -74,6 +74,7 @@ class GeneralLoop extends BaseLoop implements PropelSearchLoopInterface
return new ArgumentCollection(
Argument::createIntListTypeArgument('id'),
Argument::createIntListTypeArgument('active'),
Argument::createIntListTypeArgument('click_and_collect'),
Argument::createEnumListTypeArgument('order',
['city', 'title'], 'title')
);
@@ -93,6 +94,9 @@ class GeneralLoop extends BaseLoop implements PropelSearchLoopInterface
if (null != $active = $this->getActive()) {
$places->filterByActive($active);
}
if (null != $clickAndCollect = $this->getClickAndCollect()) {
$places->filterByClickAndCollect($clickAndCollect);
}
foreach ($this->getOrder() as $order) {
switch ($order) {