diff --git a/src/views/pages/customer/orders/single.twig b/src/views/pages/customer/orders/single.twig index 6643712d..28972a74 100644 --- a/src/views/pages/customer/orders/single.twig +++ b/src/views/pages/customer/orders/single.twig @@ -341,50 +341,12 @@ {% endif %} - {% if item.files %} -

{{ trans('pages.orders.files') }}

-
-
- {% for file in item.files %} - {% set is_protected = "/download" in file.url ? false : true %} -
-
- {{ file.name }} -
-
- - {{ is_protected ? trans('common.uploader.browse') : trans('pages.thank_you.download') }} - -
-
- {% endfor %} -
-
- {% elseif item.codes %} -

{{ trans('pages.orders.codes') }}

-
-
- {% for code in item.codes %} -
-
- - {{ code.code }} -
- - - {{ trans('common.elements.copy') }} - -
- {% endfor %} -
-
- {% endif %} {% if item.note %}

{{ trans('common.elements.note') }} : {{ item.note }}

{% endif %} + {% if item.attachments %}
diff --git a/src/views/pages/thank-you.twig b/src/views/pages/thank-you.twig index 47d28f0e..8019b9da 100644 --- a/src/views/pages/thank-you.twig +++ b/src/views/pages/thank-you.twig @@ -61,50 +61,6 @@ {% hook 'thank-you:items.start' %} - {% for item in order.items %} - {% if item.codes|length %} -
-

- {{ trans('pages.thank_you.codes') }} ({{ item.name }}) -

- {% for code in item.codes %} -
-

- - {{ code.code }} -

- - - {{ trans('common.elements.copy') }} - -
- {% endfor %} -
- {% endif %} - - {% if item.files|length %} -
-

- {{ trans('pages.thank_you.files') }} ({{ item.name }}) -

-
- {% for file in item.files %} - - {% endfor %} -
-
- {% endif %} - {% endfor %} - {% hook 'thank-you:items.end' %}