diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
index 5bfb734285..ec285960f9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
@@ -2,6 +2,7 @@
[% USE Asset %]
[% USE Branches %]
[% USE Price %]
+[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
Basket grouping for [% booksellername | html %] › Koha
[% INCLUDE 'doc-head-close.inc' %]
@@ -323,7 +324,7 @@
- [% IF (NoEDIMessage) %]No EDIFACT configuration for [% booksellername | html %]
[% END %]
+ [% IF (NoEDIMessage && Koha.Preference('EDIFACT')) %]No EDIFACT configuration for [% booksellername | html %]
[% END %]
[% WRAPPER tabs id= "basket_groups" %]
[% WRAPPER tabs_nav %]
@@ -403,11 +404,13 @@
- [% IF (ediaccount) %]
-
- [% ELSE %]
- No EDIFACT configuration for [% booksellername | html %]
- [% END %]
+ [% IF Koha.Preference('EDIFACT') %]
+ [% IF (ediaccount) %]
+
+ [% ELSE %]
+ No EDIFACT configuration for [% booksellername | html %]
+ [% END %]
+ [% END %]
[% END %]