mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Admin] Add hook for showing ip address in order
This commit is contained in:
parent
5f68148f5f
commit
cb998231f3
2 changed files with 16 additions and 0 deletions
|
|
@ -178,6 +178,8 @@ twig_hooks:
|
|||
template: '@SyliusAdmin/order/show/content/sections/general/language.html.twig'
|
||||
channel:
|
||||
template: '@SyliusAdmin/order/show/content/sections/general/channel.html.twig'
|
||||
ip_address:
|
||||
template: '@SyliusAdmin/order/show/content/sections/general/ip_address.html.twig'
|
||||
notes:
|
||||
template: '@SyliusAdmin/order/show/content/sections/general/notes.html.twig'
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
{% set order = hookable_metadata.context.resource %}
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<strong>{{ 'sylius.ui.ip_address'|trans }}:</strong>
|
||||
</div>
|
||||
<div class="mb-3" {{ sylius_test_html_attribute('ip-address') }}>
|
||||
{% if order.customerIp is not null %}
|
||||
{{ order.customerIp }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Reference in a new issue