In this tutorial, I will show you how to display products of a specific category on a home page.
Step 1: Please go to the Magento 2 admin panel > Product > Categories
Step 2: Open the desired category then find the category ID like below image. Please take note of the category ID value, you will need to use in the next step
Step 3: In Magento 2 admin panel, please go to Content > Elements > Page > Choose desired Homepage
Step 4.Open the content tab and insert the following HTML code
{{block type=”catalog/product_list” category_id=”4″ template=”catalog/product/list.phtml”}}
If you want to display a specific number of column in product listing, you can use the following code:
{{block type=”catalog/product_list” column_count=”4″ category_id=”4″ template=”catalog/product/list.phtml”}}
Step 5. Open Content > Elements > Blocks > Add New Blocks
Step 6. Specify Block name as “catalog/product_list”
allow the Block by choosing the YES/No for “Enable Block”
In the fast-paced world of eCommerce, ensuring your online store operates seamlessly is no longer…
Music streaming is more than just about playing songs; it's more about sharing a better…
Automation in WooCommerce is more than just a backend convenience—it’s a time-saver that many store…
You can’t succeed in business today without effective promotional tactics. A simple branded pen sitting…
Magento 2 AI is transforming how B2B buyers search and discover products online. Every day,…
Ever felt like your online store is losing sales just because your pricing doesn’t fit…