Show Row Numbers On Orders List

Can we show a row number on the orders page sometimes we need to see how many total rows are there for a certain filter on orders but then it has to be counted manually ?

Only if you modify the 'design/backend/templates/common/pagination.tpl' file.

Move the {/if} from line 64 to line 50 (in CS-Cart version 4.3.4). This {/if} should be located before the '{if $pagination.total_items}' line

the same for version 4.2.4 (if it is your actual version)

Create the design/backend/templates/addons/my_changes/hooks/orders/totals_stats.pre.tpl file with the following content:

{assign var="pagination" value=$search|fn_generate_pagination}
{if $pagination}
            
                

{__("totall_items")}:

{$pagination.total_items} {/if}

Make sure that the My changes module is Active and clear the cache.

The amount of orders will be displayed under the list of orders

Works great .. Thanks ecom as always.

Works great .. Thanks ecom as always.

You are welcome!

Create the design/backend/templates/addons/my_changes/hooks/orders/totals_stats.pre.tpl file with the following content:

{assign var="pagination" value=$search|fn_generate_pagination}
{if $pagination}
            
                

{__("totall_items")}:

{$pagination.total_items} {/if}

Make sure that the My changes module is Active and clear the cache.

The amount of orders will be displayed under the list of orders

Should above work for 4.12.x ?

I think yes, but it should be tested

I think yes, but it should be tested

Hi, not working for me.

Try to put the following code after first line and check the result

{$pagination|fn_print_r}