Skip to content

Commit 11a2650

Browse files
vernardVernard Alexis Luz
authored andcommitted
Specify Magento_Catalog module on template for sorting
If the block `Magento\Catalog\Block\Product\ProductList\Toolbar` is rewritten in another module, it is searching for the template in that module, not in `Magento_Catalog`.
1 parent 9813c5c commit 11a2650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/layout/catalog_category_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<block class="Magento\Framework\View\Element\RendererList" name="category.product.type.details.renderers" as="details.renderers">
2222
<block class="Magento\Framework\View\Element\Template" as="default"/>
2323
</block>
24-
<block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar" template="product/list/toolbar.phtml">
24+
<block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml">
2525
<block class="Magento\Theme\Block\Html\Pager" name="product_list_toolbar_pager"/>
2626
<!-- The following code shows how to set your own pager increments -->
2727
<!--

0 commit comments

Comments
 (0)