File tree Expand file tree Collapse file tree 2 files changed +13
-17
lines changed
app/code/Magento/Catalog/view/frontend/templates/product Expand file tree Collapse file tree 2 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ $_helper = $block->getData('outputHelper');
153
153
<?php endforeach ; ?>
154
154
</ol>
155
155
</div>
156
- <?= $ block ->getToolbarHtml () ?>
156
+ <?= $ block ->getChildBlock ( ' toolbar ' )-> setIsBottom ( true )-> toHtml () ?>
157
157
<script type="text/x-magento-init">
158
158
{
159
159
"[data-role=tocart-form], .form.map.checkout": {
Original file line number Diff line number Diff line change 10
10
*
11
11
* @var $block \Magento\Catalog\Block\Product\ProductList\Toolbar
12
12
*/
13
-
14
- // phpcs:disable Magento2.Security.IncludeFile.FoundIncludeFile
15
- // phpcs:disable PSR2.Methods.FunctionCallSignature.SpaceBeforeOpenBracket
16
13
?>
17
14
<?php if ($ block ->getCollection ()->getSize ()) :?>
18
15
<?php $ widget = $ this ->helper (\Magento \Framework \Json \Helper \Data::class)->jsonDecode ($ block ->getWidgetOptionsJson ());
19
16
$ widgetOptions = $ this ->helper (\Magento \Framework \Json \Helper \Data::class)->jsonEncode ($ widget ['productListToolbarForm ' ]);
20
17
?>
21
18
<div class="toolbar toolbar-products" data-mage-init='{"productListToolbarForm":<?= /* @noEscape */ $ widgetOptions ?> }'>
22
- <?php if ($ block ->isExpanded ()) :?>
23
- <?php include ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/viewmode.phtml ' )) ?>
24
- <?php endif ; ?>
25
-
26
- <?php include ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/amount.phtml ' )) ?>
27
-
28
- <?= $ block ->getPagerHtml () ?>
29
-
30
- <?php include ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/limiter.phtml ' )) ?>
31
-
32
- <?php if ($ block ->isExpanded ()) :?>
33
- <?php include ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/sorter.phtml ' )) ?>
34
- <?php endif ; ?>
19
+ <?php if ($ block ->getIsBottom ()): ?>
20
+ <?= $ block ->getPagerHtml () ?>
21
+ <?= $ block ->fetchView ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/limiter.phtml ' )) ?>
22
+ <?php else : ?>
23
+ <?php if ($ block ->isExpanded ()): ?>
24
+ <?= $ block ->fetchView ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/viewmode.phtml ' )) ?>
25
+ <?php endif ?>
26
+ <?= $ block ->fetchView ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/amount.phtml ' )) ?>
27
+ <?php if ($ block ->isExpanded ()): ?>
28
+ <?= $ block ->fetchView ($ block ->getTemplateFile ('Magento_Catalog::product/list/toolbar/sorter.phtml ' )) ?>
29
+ <?php endif ?>
30
+ <?php endif ?>
35
31
</div>
36
32
<?php endif ?>
You can’t perform that action at this time.
0 commit comments