{
this.isEnableDownloadButton = data.download;
diff --git a/src/Resources/app/administration/src/module/sw-order/view/sw-order-detail-base/sw-order-detail-base.html.twig b/src/Resources/app/administration/src/module/sw-order/view/sw-order-detail-details/sw-order-detail-details.html.twig
similarity index 88%
rename from src/Resources/app/administration/src/module/sw-order/view/sw-order-detail-base/sw-order-detail-base.html.twig
rename to src/Resources/app/administration/src/module/sw-order/view/sw-order-detail-details/sw-order-detail-details.html.twig
index f9ab8a8..59042b0 100644
--- a/src/Resources/app/administration/src/module/sw-order/view/sw-order-detail-base/sw-order-detail-base.html.twig
+++ b/src/Resources/app/administration/src/module/sw-order/view/sw-order-detail-details/sw-order-detail-details.html.twig
@@ -1,8 +1,7 @@
-{% block sw_order_detail_base_document_grid %}
- {% parent %}
-
+{% block sw_order_detail_details_custom_fields %}
+
+ {% parent %}
{% endblock %}
diff --git a/src/Resources/app/storefront/src/scss/base.scss b/src/Resources/app/storefront/src/scss/base.scss
index 5846b32..1d0f6a3 100644
--- a/src/Resources/app/storefront/src/scss/base.scss
+++ b/src/Resources/app/storefront/src/scss/base.scss
@@ -1 +1,2 @@
@import 'page/account/esd-downloads';
+@import '../../node_modules/plyr/dist/plyr';
diff --git a/src/Resources/app/storefront/src/scss/page/account/_esd-downloads.scss b/src/Resources/app/storefront/src/scss/page/account/_esd-downloads.scss
index f7b4139..8856761 100644
--- a/src/Resources/app/storefront/src/scss/page/account/_esd-downloads.scss
+++ b/src/Resources/app/storefront/src/scss/page/account/_esd-downloads.scss
@@ -1,10 +1,10 @@
.sas-account-esd {
- .plyr__controls__item.plyr__progress__container {
+ .psyr__controls__item.psyr__progress__container {
pointer-events: none;
}
.esd-video-action-btn {
- margin-bottom: $custom-select-padding-y-sm;
+ margin-bottom: $input-padding-y-sm;
}
.sas-esd-table {
@@ -100,14 +100,14 @@
.sas-esd-item-detail {
.esd-file-name {
@extend .col-10;
- @extend .pl-0;
+ @extend .ps-0;
}
.esd-file-type,
.esd-file-download,
.esd-file-limit {
- @extend .pl-3;
- @extend .pr-3;
+ @extend .ps-3;
+ @extend .pe-3;
}
.sas-esd-item-detail-file-name {
@@ -131,7 +131,7 @@
.sas-esd-item-detail-file-name {
@extend .col-md-6;
- @extend .pr-1;
+ @extend .pe-1;
}
}
}
diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml
index da5eeb5..6e66235 100644
--- a/src/Resources/config/services.xml
+++ b/src/Resources/config/services.xml
@@ -52,7 +52,7 @@
-
+
@@ -71,7 +71,7 @@
-
+
@@ -100,6 +100,9 @@
+
+
+
@@ -131,7 +134,7 @@
-
+
@@ -143,15 +146,6 @@
-
-
-
-
-
-
-
-
-
@@ -183,7 +177,7 @@
-
+
@@ -220,9 +214,13 @@
+
+
+
+
-
+
diff --git a/src/Resources/public/static/js/sas-esd.js.LICENSE.txt b/src/Resources/public/static/js/sas-esd.js.LICENSE.txt
index 8073fae..8b6c634 100644
--- a/src/Resources/public/static/js/sas-esd.js.LICENSE.txt
+++ b/src/Resources/public/static/js/sas-esd.js.LICENSE.txt
@@ -19,6 +19,8 @@ License: MIT
* MIT Licensed
*/
+/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
+
/**
* @license
* Lodash
diff --git a/src/Resources/snippet/de_DE/SnippetFile_de_DE.php b/src/Resources/snippet/de_DE/SnippetFile_de_DE.php
deleted file mode 100644
index 909178d..0000000
--- a/src/Resources/snippet/de_DE/SnippetFile_de_DE.php
+++ /dev/null
@@ -1,33 +0,0 @@
-
@@ -25,7 +25,7 @@
{{ lineItem.label|u.wordwrap(80) }}
- {% for esdMedia in esdMediaFiles[esdOrderId] %}
+ {% for esdMedia in esdData.esdMediaFiles[esdOrderId] %}
{% if order.orderCustomer.customer.guest %}
{{ esdMedia.media.fileName }}.{{ esdMedia.media.fileExtension}}
{% else %}
diff --git a/src/Resources/views/mail-template/de/download-disabled-zip-plain-mail-template.html.twig b/src/Resources/views/mail-template/de/download-disabled-zip-plain-mail-template.html.twig
index ba655a7..1c808da 100644
--- a/src/Resources/views/mail-template/de/download-disabled-zip-plain-mail-template.html.twig
+++ b/src/Resources/views/mail-template/de/download-disabled-zip-plain-mail-template.html.twig
@@ -4,13 +4,13 @@ Nachstehend findest du die Details zu deinen digitalen Download mit der Bestelln
{% set pos = 0 %}
{% for lineItem in order.lineItems %}
-{% if lineItem.id in esdOrderListIds|keys %}
-{% set esdOrderIds = esdOrderListIds[lineItem.id] %}
+{% if lineItem.id in esdData.esdOrderListIds|keys %}
+{% set esdOrderIds = esdData.esdOrderListIds[lineItem.id] %}
{% for esdOrderId in esdOrderIds %}
{% set pos = pos + 1 %}
Pos.: {{ pos }} | Name: {{ lineItem.label|u.wordwrap(80) }}
Download links:
-{% for esdMedia in esdMediaFiles[esdOrderId] %}
+{% for esdMedia in esdData.esdMediaFiles[esdOrderId] %}
{% if order.orderCustomer.customer.guest %}
- {{ esdMedia.media.fileName }}.{{ esdMedia.media.fileExtension}} | {{ rawUrl('frontend.sas.lineItem.media.url.guest', {esdOrderId: esdOrderId, mediaId: esdMedia.media.id}, salesChannel.domains|first.url) }}
{% else %}
diff --git a/src/Resources/views/mail-template/de/download-html-mail-template.html.twig b/src/Resources/views/mail-template/de/download-html-mail-template.html.twig
index de6d2e6..dee9c2f 100644
--- a/src/Resources/views/mail-template/de/download-html-mail-template.html.twig
+++ b/src/Resources/views/mail-template/de/download-html-mail-template.html.twig
@@ -16,8 +16,8 @@
{% set pos = 0 %}
{% for lineItem in order.lineItems %}
- {% if lineItem.id in esdOrderListIds|keys %}
- {% set esdOrderIds = esdOrderListIds[lineItem.id] %}
+ {% if lineItem.id in esdData.esdOrderListIds|keys %}
+ {% set esdOrderIds = esdData.esdOrderListIds[lineItem.id] %}
{% for esdOrderId in esdOrderIds %}
{% set pos = pos + 1 %}
|
@@ -25,7 +25,7 @@
{{ lineItem.label|u.wordwrap(80) }}
|
- {{ esdFiles[lineItem.productId] }} |
+ {{ esdData.esdFiles[lineItem.productId] }} |
{% if order.orderCustomer.customer.guest %}
diff --git a/src/Resources/views/mail-template/de/download-plain-mail-template.html.twig b/src/Resources/views/mail-template/de/download-plain-mail-template.html.twig
index 3482041..241b3a3 100644
--- a/src/Resources/views/mail-template/de/download-plain-mail-template.html.twig
+++ b/src/Resources/views/mail-template/de/download-plain-mail-template.html.twig
@@ -4,11 +4,11 @@ Nachstehend findest du die Details zu deinen digitalen Download mit der Bestelln
{% set pos = 0 %}
{% for lineItem in order.lineItems %}
-{% if lineItem.id in esdOrderListIds|keys %}
-{% set esdOrderIds = esdOrderListIds[lineItem.id] %}
+{% if lineItem.id in esdData.esdOrderListIds|keys %}
+{% set esdOrderIds = esdData.esdOrderListIds[lineItem.id] %}
{% for esdOrderId in esdOrderIds %}
{% set pos = pos + 1 %}
-Pos.: {{ pos }} | Name: {{ lineItem.label|u.wordwrap(80) }} | Dateigröße: {{ esdFiles[lineItem.productId] }} | Download Link: {% if order.orderCustomer.customer.guest %}{{ rawUrl('frontend.sas.esd.download.guest', {esdOrderId: esdOrderId}, salesChannel.domains|first.url) }}{% else %}{{ url('frontend.sas.esd.download', {esdOrderId: esdOrderId}) }}{% endif %}
+Pos.: {{ pos }} | Name: {{ lineItem.label|u.wordwrap(80) }} | Dateigröße: {{ esdData.esdFiles[lineItem.productId] }} | Download Link: {% if order.orderCustomer.customer.guest %}{{ rawUrl('frontend.sas.esd.download.guest', {esdOrderId: esdOrderId}, salesChannel.domains|first.url) }}{% else %}{{ url('frontend.sas.esd.download', {esdOrderId: esdOrderId}) }}{% endif %}
{% endfor %}
{% endif %}
diff --git a/src/Resources/views/mail-template/de/serial-html-mail-template.html.twig b/src/Resources/views/mail-template/de/serial-html-mail-template.html.twig
index 31af986..532e117 100644
--- a/src/Resources/views/mail-template/de/serial-html-mail-template.html.twig
+++ b/src/Resources/views/mail-template/de/serial-html-mail-template.html.twig
@@ -13,7 +13,7 @@
| Ordnungsnummer |
- {% for esdSerial in esdSerials %}
+ {% for esdSerial in esdData.esdSerials %}
{{ loop.index }} |
diff --git a/src/Resources/views/mail-template/de/serial-plain-mail-template.html.twig b/src/Resources/views/mail-template/de/serial-plain-mail-template.html.twig
index b35104a..e4108d6 100644
--- a/src/Resources/views/mail-template/de/serial-plain-mail-template.html.twig
+++ b/src/Resources/views/mail-template/de/serial-plain-mail-template.html.twig
@@ -2,6 +2,6 @@ Hallo {{order.orderCustomer.firstName}},
vielen Dank für deine Bestellung.
Nachstehend findest du die Details zu deinen digitalen Seriennummer mit der Bestellnummer {{order.orderNumber}}.
-{% for esdSerial in esdSerials %}
+{% for esdSerial in esdData.esdSerials %}
Pos.: {{ loop.index }} | Name: {{ esdSerial.productName|u.wordwrap(80) }} | Seriennummer: {{ esdSerial.serial }}
{% endfor %}
diff --git a/src/Resources/views/mail-template/download-disabled-zip-html-mail-template.html.twig b/src/Resources/views/mail-template/download-disabled-zip-html-mail-template.html.twig
index 6034c9f..c542f80 100644
--- a/src/Resources/views/mail-template/download-disabled-zip-html-mail-template.html.twig
+++ b/src/Resources/views/mail-template/download-disabled-zip-html-mail-template.html.twig
@@ -15,8 +15,8 @@
{% set pos = 0 %}
{% for lineItem in order.lineItems %}
- {% if lineItem.id in esdOrderListIds|keys %}
- {% set esdOrderIds = esdOrderListIds[lineItem.id] %}
+ {% if lineItem.id in esdData.esdOrderListIds|keys %}
+ {% set esdOrderIds = esdData.esdOrderListIds[lineItem.id] %}
{% for esdOrderId in esdOrderIds %}
{% set pos = pos + 1 %}
|
@@ -25,7 +25,7 @@
{{ lineItem.label|u.wordwrap(80) }}
- {% for esdMedia in esdMediaFiles[esdOrderId] %}
+ {% for esdMedia in esdData.esdMediaFiles[esdOrderId] %}
{% if order.orderCustomer.customer.guest %}
{{ esdMedia.media.fileName }}.{{ esdMedia.media.fileExtension}}
{% else %}
diff --git a/src/Resources/views/mail-template/download-disabled-zip-plain-mail-template.html.twig b/src/Resources/views/mail-template/download-disabled-zip-plain-mail-template.html.twig
index 846941d..d232d98 100644
--- a/src/Resources/views/mail-template/download-disabled-zip-plain-mail-template.html.twig
+++ b/src/Resources/views/mail-template/download-disabled-zip-plain-mail-template.html.twig
@@ -4,13 +4,13 @@ Please find the details of your download product of order {{order.orderNumber}}.
{% set pos = 0 %}
{% for lineItem in order.lineItems %}
-{% if lineItem.id in esdOrderListIds|keys %}
-{% set esdOrderIds = esdOrderListIds[lineItem.id] %}
+{% if lineItem.id in esdData.esdOrderListIds|keys %}
+{% set esdOrderIds = esdData.esdOrderListIds[lineItem.id] %}
{% for esdOrderId in esdOrderIds %}
{% set pos = pos + 1 %}
Pos.: {{ pos }} | Name: {{ lineItem.label|u.wordwrap(80) }}
Download links:
-{% for esdMedia in esdMediaFiles[esdOrderId] %}
+{% for esdMedia in esdData.esdMediaFiles[esdOrderId] %}
{% if order.orderCustomer.customer.guest %}
- {{ esdMedia.media.fileName }}.{{ esdMedia.media.fileExtension}} | {{ rawUrl('frontend.sas.lineItem.media.url.guest', {esdOrderId: esdOrderId, mediaId: esdMedia.media.id}, salesChannel.domains|first.url) }}
{% else %}
diff --git a/src/Resources/views/mail-template/download-html-mail-template.html.twig b/src/Resources/views/mail-template/download-html-mail-template.html.twig
index f29d20c..80feddf 100644
--- a/src/Resources/views/mail-template/download-html-mail-template.html.twig
+++ b/src/Resources/views/mail-template/download-html-mail-template.html.twig
@@ -16,8 +16,8 @@
{% set pos = 0 %}
{% for lineItem in order.lineItems %}
- {% if lineItem.id in esdOrderListIds|keys %}
- {% set esdOrderIds = esdOrderListIds[lineItem.id] %}
+ {% if lineItem.id in esdData.esdOrderListIds|keys %}
+ {% set esdOrderIds = esdData.esdOrderListIds[lineItem.id] %}
{% for esdOrderId in esdOrderIds %}
{% set pos = pos + 1 %}
|
@@ -25,7 +25,7 @@
{{ lineItem.label|u.wordwrap(80) }}
|
- {{ esdFiles[lineItem.productId] }} |
+ {{ esdData.esdFiles[lineItem.productId] }} |
{% if order.orderCustomer.customer.guest %}
diff --git a/src/Resources/views/mail-template/download-plain-mail-template.html.twig b/src/Resources/views/mail-template/download-plain-mail-template.html.twig
index db958cd..ac5fe33 100644
--- a/src/Resources/views/mail-template/download-plain-mail-template.html.twig
+++ b/src/Resources/views/mail-template/download-plain-mail-template.html.twig
@@ -4,11 +4,11 @@ Please find the details of your download product of order {{order.orderNumber}}.
{% set pos = 0 %}
{% for lineItem in order.lineItems %}
-{% if lineItem.id in esdOrderListIds|keys %}
-{% set esdOrderIds = esdOrderListIds[lineItem.id] %}
+{% if lineItem.id in esdData.esdOrderListIds|keys %}
+{% set esdOrderIds = esdData.esdOrderListIds[lineItem.id] %}
{% for esdOrderId in esdOrderIds %}
{% set pos = pos + 1 %}
-Pos.: {{ pos }} | Name: {{ lineItem.label|u.wordwrap(80) }} | File size: {{ esdFiles[lineItem.productId] }} | Download link: {% if order.orderCustomer.customer.guest %}{{ rawUrl('frontend.sas.esd.download.guest', {esdOrderId: esdOrderId}, salesChannel.domains|first.url) }}{% else %}{{ url('frontend.sas.esd.download', {esdOrderId: esdOrderId}) }}{% endif %}
+Pos.: {{ pos }} | Name: {{ lineItem.label|u.wordwrap(80) }} | File size: {{ esdData.esdFiles[lineItem.productId] }} | Download link: {% if order.orderCustomer.customer.guest %}{{ rawUrl('frontend.sas.esd.download.guest', {esdOrderId: esdOrderId}, salesChannel.domains|first.url) }}{% else %}{{ url('frontend.sas.esd.download', {esdOrderId: esdOrderId}) }}{% endif %}
{% endfor %}
{% endif %}
diff --git a/src/Resources/views/mail-template/serial-html-mail-template.html.twig b/src/Resources/views/mail-template/serial-html-mail-template.html.twig
index 4c8bee3..697874e 100644
--- a/src/Resources/views/mail-template/serial-html-mail-template.html.twig
+++ b/src/Resources/views/mail-template/serial-html-mail-template.html.twig
@@ -13,7 +13,7 @@
| Serial Number |
- {% for esdSerial in esdSerials %}
+ {% for esdSerial in esdData.esdSerials %}
{{ loop.index }} |
diff --git a/src/Resources/views/mail-template/serial-plain-mail-template.html.twig b/src/Resources/views/mail-template/serial-plain-mail-template.html.twig
index 1271915..2fb26a0 100644
--- a/src/Resources/views/mail-template/serial-plain-mail-template.html.twig
+++ b/src/Resources/views/mail-template/serial-plain-mail-template.html.twig
@@ -2,6 +2,6 @@ Dear {{order.orderCustomer.firstName}},
Thank you for your order.
Please find the details of your download serial of order {{order.orderNumber}}.
-{% for esdSerial in esdSerials %}
+{% for esdSerial in esdData.esdSerials %}
Pos.: {{ loop.index }} | Name: {{ esdSerial.productName|u.wordwrap(80) }} | Serial Number: {{ esdSerial.serial }}
{% endfor %}
diff --git a/src/Resources/views/storefront/page/account/downloads/table.html.twig b/src/Resources/views/storefront/page/account/downloads/table.html.twig
index 92074ce..1cc9cf4 100644
--- a/src/Resources/views/storefront/page/account/downloads/table.html.twig
+++ b/src/Resources/views/storefront/page/account/downloads/table.html.twig
@@ -26,9 +26,9 @@
|