How to Display New Products in Magento with Pagination?

Displaying new products to a specific category in any Magento site, with pagination and a CMS page is really very complicated. The default functionality that Magento offers for latest products doesn't just work. However, below is documented the method that will let you add new products to a Magento CMS page along with pulling up new products for any category you select, or for the entire site. Whether you are looking to include new products to your CMS page by category or for the whole site, it all depends upon you.

How to add new products with built-in Magento Tools?

Displaying or adding a list of new products in Magento through a default block is made possible without any coding issues or changes to Magento itself. This code allows you to roll out a roster of new products on the CMS page of your liking.

How to display new products in Magento with Pagination?

Following steps allow you to add new products to a Magento CMS page and show pagination for the products.

Below are given paths wherein you have to create the folders if they've not been created earlier.

app/code/local/Mage/Catalog/Block/Product

Below is the location where you have to create and place a new .php file:

app/code/local/Mage/Catalog/Block/Product/New.php

3. Below is the code that you have to add to your new.php file:

      01     //Code
      
      02     
      03     

      04 classes Mage_Catalog_Block_Product_New extends Mage_Catalog_Block_Product_List

      05     {

      06     function get_prod_count()

      07     {

      08     //unset any saved limits

No comments:

Post a Comment