Changing the new product widget sort order in Magento

I'm using Magento for my webshop and my homepage uses a new products widget. I want to change the sort order for the products within the widget.

I searched for hours but I can't figure it out.

-------------Problems Reply------------

The block for displaying new product is:

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

see the function _beforeToHtml() default sorting is done by start date descending:

->addAttributeToSort('news_from_date', 'desc')

You can copy this block to code/local and replace it with position or the sort order you want... or extend it with a Magento extension.

You might want to search Magento Connect to see if there is any module that would fit your needs.

Category:magento Views:0 Time:2011-11-29

Related post

  • Calculate the price for each product in an order in Magento 2010-12-12

    I want to calculate the base price of all products in an order. The price for each (1 quantity) should include any discount/bonuses but NOT tax. The total of all product prices times their quantity + tax should be exactly the same as $order->getGr

  • Storing product attributes with orders in Magento 2011-10-18

    I am looking for a solution to storing product attributes with each order. Essentially I have a need for storing a unique item lot number for each product that can then be searched on the front end to find out which orders contained products from a s

  • Add sort order to featured products in magento 2012-03-17

    I am using the following piece of code to allow users to set featured products that will display on the homepage but I need to extend this so that they can also dictate the sort order of the items. By default it displays the producst in the order the

  • Magento new products widget 2012-01-28

    First I would like to say that I am entirely new to Magento so in answering please do not assume any knowledge of Magento - I would however be very greatful to anyone who can point me in the right direction. The problem we are having is with the new

  • Re-sort orders to improve warehouse efficiency 2009-05-15

    I am trying to optimize how orders are filled at my work. Right now, an employee just grabs the latest 16 orders(sometimes 14 or 18) and fills them. I am trying to change it so that instead of simply going by the latest list of orders, that it orders

  • Sorting Divs in jQuery by Custom Sort Order 2009-10-21

    I'm trying to re-sort the child elements of the tag input by comparing their category attribute to the category order in the Javascript variable category_sort_order. Then I need to remove divs whose category attribute does not appear in category_sort

  • Conditional "orderby" sort order in LINQ 2009-10-22

    In LINQ, is it possible to have conditional orderby sort order (ascending vs. descending). Something like this (not valid code): bool flag; (from w in widgets where w.Name.Contains("xyz") orderby w.Id (flag ? ascending : descending) select w) -------

  • Jquery TableSorter 2.0 - Revert Sort order 2009-11-11

    All, I am using the JQuery TableSorter Plugin. The table sorts fine for the selected columns. Consider that when the page loads, there is no sorting taking place. Now, if the table is sorted by one column, it sorts. Now, upon clicking a "Revert Sort"

  • Save and get arbitrary sort order in SQL Server 2009-12-09

    My client wants to sort products by drag & drop. The drag & drop part is easy with javascript. My problem is how do I save and get the sort order? I'm using .net c# and SQL Server 2008. When I move a product and drop it in a new position I ge

  • ASP.NET / SQL drop-down list sort order 2010-01-05

    I am trying to correct the sort order of my ASP.NET drop down list. The problem I have is that I need to select a distinct Serial number and have these numbers organised by DateTime Desc. However I cannot ORDER BY DateTime if using DISTINCT without s

  • SQL - call aggregate function in sort order 2010-02-04

    I have a custom aggregate function that concatenates items with a delimiter. How can I call this function to ensure that the result is a sorted list. Aggregate functions like sum() will have the same result no matter which order the rows are fed to i

  • Is it possible to have a composite index with a list property and a sort order? 2010-04-22

    And if not, why not? The following index always fails to build on the production server, even though I had thought I could have a sort order with a list property as long as the index didn't sort or match against any other properties. - kind: Foo prop

  • Rectangular divs with textual content are arranged in rows based on their sort order 2010-05-23

    Is it possible to create the following behavior with one or more existing JQuery plugin(s)/widget(s)... or with some other web framework? Rectangular divs with textual content are arranged in rows (left to right) based on their sort order, and then f

  • Remember (persist) the filter, sort order and current page of jqGrid 2010-06-10

    My application users asked if it were possible for pages that contain a jqGrid to remember the filter, sort order and current page of the grid (because when they click a grid item to carry out a task and then go back to it they'd like it to be "as th

  • Control sort order of Hibernate EnumType.STRING properties 2010-08-31

    Currently, my project uses @Enumerated(EnumType.ORDINAL), so when I sort by this column, it is ordering based on the order in the enum, which works fine. But I need to add some additional values to the enum, which need to be inserted at different loc

  • Sort order of result for "Find All References" in Visual Studio 2010-09-27

    I'm currently using Visual Studio 2010, but I don't think this is a version specific issue (think it was the exact same way in 2008 as well). When I want to find out where in my solution some variable/function/whatever is used, I right-click it and s

  • How to change the product display order in magento 2011-01-26

    How can I change the product display order in the front end (grid or list) by setting some preferences from back-end? I guess it should be other than best value and name from the default Magento display order property. I tried by creating a new attri

  • How to sort/order data in Riak? 2011-09-29

    I've already experiences with MongoDB, CouchDB, Redis, Tokyo Cabinet and other NoSQL Databases. Recently I stumbled upon Riak and it looks very interesting to me. To getting started with it, I decided to write a small twitter clone, the "hello world"

  • Backbone.js collection retain new sort order? 2011-10-12

    OK, so I am sorting a group of dashboard widgets with jQuery UI and would like to retain the new order of the widgets. What is the best approach to this? Any ideas? I was thinking of giving an attribute of "order" within the model like so: widgetsMod

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.207 (s). 11 q(s)