Magento 2: How To Display Count Of Product with Page Title on Category Page

in #magentotutorials4 years ago

By default, Magento 2 offers some default functionality to display the count of no. of products for a particular category on the category page with the toolbar.

But what if we want to display a count of no. of products as per our essentiality? No worries, with the help of the below code it is possible to display the count of products for a particular category as per our needs.

Here we have used display count with page main title. So, let us do 🚀

How-To-Display-Count-Of-Products-With-Page-Title-On-Category-Page-in-Magento-2-950x500.png

teps to Display Count Of Product with Page Title on Category Page in Magento 2:
Step 1: To do this, create events.xml file inside app\Code\Vendor\Extension\etc\ folder and add the below code:

For more details: https://magecomp.com/blog/magento-2-display-count-of-product-with-page-title-on-category-page/

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.029
BTC 60323.94
ETH 2395.54
USDT 1.00
SBD 2.54