ghiyas
1
Hello,
On v4.18.1, I have noticed on the orders list page, the way it displays customers is:
@
Company Name
Customer Name
or if they don’t have a company name, then it displays as:
@ Customer Name
However, on v4.9.2, it displays it as:
@ Customer Name
Company Name
This is how I prefer it; how do I change the way it is displayed?
/design/backend/templates/views/orders/manage.tpl
try to replace
{if $o.company}<p class="muted">{$o.company}</p>{/if}
{if $o.user_type !== "UserTypes::CUSTOMER"|enum
&& $auth.user_type !== "UserTypes::ADMIN"|enum
&& $o.user_id !== $auth.user_id
|| !$o.user_id
}
{$o.lastname} {$o.firstname}
{elseif $o.user_id}
<a href="{"profiles.update?user_id=`$o.user_id`"|fn_url}" class="link--monochrome">{$o.lastname} {$o.firstname}</a>
{/if}
with
{if $o.user_type !== "UserTypes::CUSTOMER"|enum
&& $auth.user_type !== "UserTypes::ADMIN"|enum
&& $o.user_id !== $auth.user_id
|| !$o.user_id
}
{$o.lastname} {$o.firstname}
{elseif $o.user_id}
<a href="{"profiles.update?user_id=`$o.user_id`"|fn_url}" class="link--monochrome">{$o.lastname} {$o.firstname}</a>
{/if}
{if $o.company}<p class="muted">{$o.company}</p>{/if}
Then clear the cache
(!) Not tested
2 Likes
ghiyas
3
Thank you, that has sorted it!
1 Like
system
Closed
4
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.