Forname Surname In Recent Orders

Hi All,

This will probably sound like a really basic question but I'm not sure where I need to make this change.

I would like to change the order of the name on the admin backend, under "Recent Orders". Presently, it is listed as "surname forename" but I would prefer to display it as "forename surname"

design/backend/templates/views/index/index.tpl

replace

{$order.lastname} {$order.firstname}

with

{$order.firstname} {$order.lastname}

Then clear cache

Thanks eCom! I'll try this shortly. I just want to confirm the path

design/backend/templates/views/index/index.tpl

is still correct if I am using the old admin-panel addon?

Ghiyas, then the path will be

design/backend/templates/addons/old_adminpanel/overrides/views/index/index.tpl

Amazing, thank you! That worked great!

Could you also advise how I can swap them around in the "orders" and "customers" area? What files do I need to edit?

Try

design/backend/templates/addons/old_adminpanel/overrides/views/orders/manage.tpl

and

design/backend/templates/addons/old_adminpanel/overrides/views/profiles/manage.tpl

Also on the abandoned cart page:

/design/backend/templates/views/cart/cart_list.tpl

Also on the abandoned cart page:

/design/backend/templates/views/cart/cart_list.tpl

How would I go about editing that file? Would I need to change it from:

        {if $customer.user_data.email}{if $customer.firstname || $customer.lastname}{$customer.lastname} {$customer.firstname}{else}{$customer.user_data.email}{/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{else}{__("unregistered_customer")} {if $customer.lastname || $customer.firstname}

{$customer.lastname} {$customer.firstname} {if $customer.email}({$customer.email}){/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{/if}

{/if}

to:

        {if $customer.user_data.email}{if $customer.firstname || $customer.lastname}{$customer.firstname} {$customer.lastname}{else}{$customer.user_data.email}{/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{else}{__("unregistered_customer")} {if $customer.firstname || $customer.lastname}

{$customer.firstname} {$customer.lastname} {if $customer.email}({$customer.email}){/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{/if}

{/if}
        {if $customer.user_data.email}{if $customer.firstname || $customer.lastname}{$customer.firstname} {$customer.lastname}{else}{$customer.user_data.email}{/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{else}{__("unregistered_customer")} {if $customer.lastname || $customer.firstname}

{$customer.firstname} {$customer.lastname} {if $customer.email}({$customer.email}){/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{/if}

{/if}
        {if $customer.user_data.email}{if $customer.firstname || $customer.lastname}{$customer.firstname} {$customer.lastname}{else}{$customer.user_data.email}{/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{else}{__("unregistered_customer")} {if $customer.lastname || $customer.firstname}

{$customer.firstname} {$customer.lastname} {if $customer.email}({$customer.email}){/if}{if $customer.phone}
{__('phone')} {$customer.phone}{/if}{/if}

{/if}

Thanks TheTool! That worked perfectly, not sure why it's set to lastname firstname by default but it's difficult to change to firstname lastname (instead of having a setting on the backend) but I'm sure someone here can enlighten me?

Thanks TheTool! That worked perfectly, not sure why it's set to lastname firstname by default but it's difficult to change to firstname lastname (instead of having a setting on the backend) but I'm sure someone here can enlighten me?

The answer is simple. Such format is popular in Russia

The answer is simple. Such format is popular in Russia

That makes sense but the firstname lastname format is popular in other countries, so it would have been nice if it was easy to change (with a dropdown option in Appearance) instead of having to change multiple files. Maybe one day this will be implemented by the CS-Cart team

You can put your request to the bug tracker as feature request. But I do not think that they will add this feature in the nearest releases