Sorting Of Products In A New Page

We have created a new page and added product block with manually selected products in that block. Our default sorting setting is popularity but that doesnt work on this page , any ideas what could be the reason and how can we make it to Popularity again.

It is required to specify sorting in the schema of the block manager.

app/schemas/block_manager/blocks.php

Add:

'params' => array(
    'sort_by' => 'popularity',
    'sort_order' => 'desc',
),

after this line of code:

'picker' => 'pickers/products/picker.tpl',

Then clear cache and check the result

Please note that this sorting will be used for all blocks with manually filling.

P.S. It is better to extend schema with the My changes module instead of changing core files

It is required to specify sorting in the schema of the block manager.

app/schemas/block_manager/blocks.php

Add:

'params' => array(
    'sort_by' => 'popularity',
    'sort_order' => 'desc',
),

after this line of code:

'picker' => 'pickers/products/picker.tpl',

Then clear cache and check the result

Please note that this sorting will be used for all blocks with manually filling.

P.S. It is better to extend schema with the My changes module instead of changing core files

So do you mean to say I should make a copy of this file and add it in my_changes / hooks / overrides / block_manager.tpl to make it work.

It didnot work :-(, i cleared the cache as well

So do you mean to say I should make a copy of this file and add it in my_changes / hooks / overrides / block_manager.tpl to make it work.

No, the schema is extended with php files in the addons. Check Bestsellers module as example.

It didnot work :-(, i cleared the cache as well

Note that it is required to clear system cache, not templates one

No, the schema is extended with php files in the addons. Check Bestsellers module as example.

Note that it is required to clear system cache, not templates one

I tried clearing all system only, we are on v4.2.4 MVE

'fillings' => array (
                    'manually' => array (
                        'picker' => 'pickers/products/picker.tpl',
                        'params' => array (
                            'sort_by' => 'popularity',
                            'sort_order' => 'desc'
                        ),
                        'picker_params' => array (
                            'type' => 'links',
                        ),
                    ),

This is how the code is , I have changed the core file only for now

So does it work now?

So does it work now?

No it didnot work for us.

No it didnot work for us.

We have examined it. Yes, if the picker is used, the system uses the same order as the products were added.

Hope the following module can help you:

http://marketplace.cs-cart.com/add-ons/site-management/sortable-picker.html