Magento : How can i sort it by newest products instead of price or name for product list page?sort products...

How to substitute values from a list into a function?

Every subset equal to original set?

What is this waxed root vegetable?

Rationale to prefer local variables over instance variables?

Test pad's ESD protection

If a set is open, does that imply that it has no boundary points?

Is there a math equivalent to the conditional ternary operator?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

What is the difference between a forward slip and a side slip?

VAT refund for a conference ticket in Sweden

What is better: yes / no radio, or simple checkbox?

Why is working on the same position for more than 15 years not a red flag?

Is the withholding of funding notice allowed?

Book about a time-travel war fought by computers

Canadian citizen, on US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

lead or lag function to get several values, not just the nth

Is there any relevance to Thor getting his hair cut other than comedic value?

Plagiarism of code by other PhD student

Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?

Non-Italian European mafias in USA?

What are all the squawk codes?

In iTunes 12 on macOS, how can I reset the skip count of a song?

How to kill a localhost:8080

Can we carry rice to Japan?



Magento : How can i sort it by newest products instead of price or name for product list page?


sort products by newest, discount, most sold, reviews" in products list pageHow to Add additional Sort by?sort products by newest, discount, most sold, reviews" in products list pageHow to make category 'Default Product Listing Sort By' default option as 'Position'Sort products in wishlist by priceSort products by their product id in the order they were importedHow do we keep the products with NULL value at the end of listingAdd custom sort to sort products using name and price bothSort products by date DESC as the base sort order on category page?Magento 2: How to sort products by price then by name?Magento related products sort order not working













0















Is there anyway to sort the products listing by newest ?












share|improve this question

























  • Please refer this link : How to add custom sort by Happy Coding. :)

    – Ajay Patel
    Apr 15 '16 at 11:10
















0















Is there anyway to sort the products listing by newest ?












share|improve this question

























  • Please refer this link : How to add custom sort by Happy Coding. :)

    – Ajay Patel
    Apr 15 '16 at 11:10














0












0








0








Is there anyway to sort the products listing by newest ?












share|improve this question
















Is there anyway to sort the products listing by newest ?









sorting sort






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 21 mins ago









Amit Naraniwal

65839




65839










asked Apr 15 '16 at 11:04









Khaled M A HasaboKhaled M A Hasabo

1




1













  • Please refer this link : How to add custom sort by Happy Coding. :)

    – Ajay Patel
    Apr 15 '16 at 11:10



















  • Please refer this link : How to add custom sort by Happy Coding. :)

    – Ajay Patel
    Apr 15 '16 at 11:10

















Please refer this link : How to add custom sort by Happy Coding. :)

– Ajay Patel
Apr 15 '16 at 11:10





Please refer this link : How to add custom sort by Happy Coding. :)

– Ajay Patel
Apr 15 '16 at 11:10










1 Answer
1






active

oldest

votes


















0














You can refer this to add the the sortable attribute for products.



Following this you will able to sort the products based on their created date, the attribute will be added in all the category pages, and from the admin panel you can show it for particular category also.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f111059%2fmagento-how-can-i-sort-it-by-newest-products-instead-of-price-or-name-for-prod%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You can refer this to add the the sortable attribute for products.



    Following this you will able to sort the products based on their created date, the attribute will be added in all the category pages, and from the admin panel you can show it for particular category also.






    share|improve this answer




























      0














      You can refer this to add the the sortable attribute for products.



      Following this you will able to sort the products based on their created date, the attribute will be added in all the category pages, and from the admin panel you can show it for particular category also.






      share|improve this answer


























        0












        0








        0







        You can refer this to add the the sortable attribute for products.



        Following this you will able to sort the products based on their created date, the attribute will be added in all the category pages, and from the admin panel you can show it for particular category also.






        share|improve this answer













        You can refer this to add the the sortable attribute for products.



        Following this you will able to sort the products based on their created date, the attribute will be added in all the category pages, and from the admin panel you can show it for particular category also.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 15 '16 at 12:43









        ShrikantShrikant

        310312




        310312






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f111059%2fmagento-how-can-i-sort-it-by-newest-products-instead-of-price-or-name-for-prod%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

            How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

            變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...