Reading list Switch to dark mode

    A Complete Guide to Prestashop Advanced Product Sorting

    Updated 22 February 2024

    Prestashop Advanced Product Sorting: Product sorting is crucial for an eCommerce store offering a wide range of products as it determines what should be put at the top or end of the product listing page.

    Finding the right product in a product list containing tens, hundreds, or thousands of products can be a challenging task for the user. If the users are unable to search for the desired products in minimal time, they may abandon your store and start looking elsewhere.

    The sorting options available in default Prestashop are limited and do not let shoppers sort products easily. Thanks to Prestashop Advanced Product Sorting, shoppers can now search for the right products quickly and conveniently.

    Along with 3 default sorting options: relevance, price, and name, this extension facilitates your shoppers to sort products by stock, discount, image, pack products, and new products.

    Enhance product findability, improve the online shopping experience, and boost conversions by adding flexible sorting options on the product listing pages.

    Start your headless eCommerce
    now.
    Find out More

    Note: Module is compatible with PrestaShop version 8.x.x.

    Check the overview of the plugin in the video mentioned-below –

    Features

    • Sort products by stock, discount, image, pack products, and new products.
    • Add sorting options on category, best sale, manufacturer, new products, price drop, search, and supplier page.
    • List combination products based on default combination quantity or total quantity of all combinations in case stock sorting option is selected.
    • Prestashop Advanced Product Sorting is MultiShop compatible.

    How to Install Prestashop Advanced Product Sorting

    • Firstly, go to the module manager in the back office and click on ‘upload a module’.
    • After that, drag and drop the module file or select the file from the system.
    • In this way, the module installation will be successful.
    advanced product sorting installation
    advanced product sorting installation
    advanced product sorting installation

    Note: Add custom code in the core module

    On the category page, Prestashop 1.7 uses the Faceted Search module. If this module is enabled and the version of this module is equal to or higher than 3.0.0, then you have to do add a hook and import 2 classes in this file:

    /modules/ps_facetedsearch/src/Adapter/MySQL.php

    Add below lines above “use Doctrine\Common\Collections\ArrayCollection;”

    use Hook;
    use Module;
    refer_classes-1-2-png-869×293-

    In function “getFieldMapping()” above “return $filterToTableMapping;”

    Add this hook

    if (Module::isInstalled('wksortproductsbystock') && Configuration::get('WK_WSPBS_ENABLE')) {
    Hook::exec('actionWkSortProductOnCategory', array('filterToTableMapping' => &$filterToTableMapping));
    }
    2-5

    Prestashop Advanced Product Sorting Configuration

    After the installation of the module, you need to configure it. In the configuration settings, you can choose the product sorting options and pages where you wish to apply them. You can choose to apply sorting on category, best sale, manufacturer, new products, price drop, search, and supplier pages.

    1-4

    This module provides five additional sorting options which help customers to easily filter the products. Customers can sort products by:

    • Stock: ‘high to low’ or ‘low to high’
    • Image first or last
    • Discount: ‘high to low’ or ‘low to high’
    • Pack products first or last
    • New products first or last

    List combination products based on quantity of default combination

    If admin enables this field, then the combination products are listed on the page based on the quantity of its default combination. If disabled, then the combination products will be list based on the total quantity of all the combinations of a product.

    Let me explain this with the help of an example.

    Suppose there is a product X and it has 3 combinations: A, B, and C. The available quantity of the combinations are 30, 40, 50 and A is the default combination. This means the total quantity of all the product combinations is 120. Let’s say the customer has applied the stock (high to low) sorting option on the category page.

    If the quantity of the default combination is higher than the default combination quantity of the other products. Then, product A will appear on the top of the listing page.

    Front End Workflow

    When a customer visits the product listing page and clicks on the dropdown above the product list, he can view all the sorting options you have enabled from the back office.

    Category Page

    2-3

    Manufacturer Page

    3-3

    Now, let’s discuss the sorting options one by one and how the customers can use them to filter their desired products.

    Sort By Stock

    With this sorting option, a customer can choose to view the products with the highest or lowest quantity first on the product listing pages.

    4-4
    5-4

    Sort by Image First/Last

    When a customer selects the sorting option “Having image first”, all the products with images will display first. And if a customer selects “Having Image Last, then products without images are displayed first.

    6-2

    Sort By Discount

    This sorting option enables the customers to view the products with the highest to lowest or lowest to highest discount rate.

    8-2
    11-1

    Sort By Pack Products

    This sorting option enables customers to view pack products at the top or end of a product listing page.

    12-1
    13-1

    Sort By New Products

    With this sorting option, customers can choose whether they want to see new products first or last.

    9-2
    10-1

    Support

    For any kind of technical assistance or query, please raise a ticket or send us a mail at [email protected]

    Also, please explore our Prestashop development services and vast range of quality Prestashop addons.

    Current Product Version - 4.0.2

    Supported Framework Version - 8.x.x, 1.7.x.x

    Blog Version - 8.x.x, 1.7.x.x
    • Version 8.x.x, 1.7.x.x
    • Version 1.7.x.x
    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content