From b0f5e2ff9739e0d342981b22f7a2c3cd58bb246d Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Thu, 28 Nov 2024 07:43:12 +0100 Subject: [PATCH] [Admin] Hide refund button next to the payment --- config/app/twig_hooks/admin/order/show.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/app/twig_hooks/admin/order/show.yaml b/config/app/twig_hooks/admin/order/show.yaml index 9aefbf75c..cf1f039fc 100644 --- a/config/app/twig_hooks/admin/order/show.yaml +++ b/config/app/twig_hooks/admin/order/show.yaml @@ -13,6 +13,10 @@ sylius_twig_hooks: template: '@SyliusRefundPlugin/order/admin/content/sections/payments/refund_items.html.twig' priority: -200 + 'sylius_admin.order.show.content.sections.payments.item.actions': + refund: + enabled: false + 'sylius_admin.order.show.content.sections.payments.refund_header': title: template: '@SyliusRefundPlugin/order/admin/content/sections/payments/header/title.html.twig'