cancel
Showing results for 
Search instead for 
Did you mean: 

sort products by newest

sort products by newest

how do i make it sort by newest is displayed.

 

without having to do anything in the code, the easiest thing to sort something, that just can't be true how bad magento 2 isSmiley Mad

2 REPLIES 2

Re: sort products by newest

Hello @bruce2004dedba 

 

Please follow the steps below to display the products Sorted by newest in Magento 2:

  • Log in to your Magento 2 admin panel and go to Stores > Attributes > Product.
  • Click on the "Created At" attribute and make sure that the "Used for Sorting in Product Listing" option is set to "Yes". This will enable the attribute to be used for sorting products.
  • Go to Stores > Configuration > Catalog > Catalog > Storefront.
  • In the "Product Listing Sort by" option, select "Created At" from the dropdown menu.
  • Save the configuration and clear the cache.

With these changes, the product listing on your storefront should now be sorted by the newest first based on the product creation date. Note that this will only apply to products that have the "Created At" attribute set correctly, and it may take some time for the changes to take effect depending on your cache settings.

 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9

Re: sort products by newest

I don't know where that is supposed to be "Created At"