Skip to content

Commit 78f18f8

Browse files
committed
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 19b26b5 commit 78f18f8

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<block class="Magento\Catalog\Block\Category\View" name="category.products" template="Magento_Catalog::category/products.phtml">
1919
<block class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
2020
<container name="category.product.list.additional" as="additional" />
21-
<block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar" template="product/list/toolbar.phtml">
21+
<block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml">
2222
<block class="Magento\Theme\Block\Html\Pager" name="product_list_toolbar_pager"/>
2323
<!-- The following code shows how to set your own pager increments -->
2424
<!--

0 commit comments

Comments
 (0)