diff --git a/composer.json b/composer.json
index 4984032..936cf49 100755
--- a/composer.json
+++ b/composer.json
@@ -68,6 +68,9 @@
]
},
"config": {
- "optimize-autoloader": true
+ "optimize-autoloader": true,
+ "allow-plugins": {
+ "symfony/runtime": true
+ }
}
-}
\ No newline at end of file
+}
diff --git a/src/Resources/app/administration/src/main.js b/src/Resources/app/administration/src/main.js
index 67e79e9..b163e5e 100644
--- a/src/Resources/app/administration/src/main.js
+++ b/src/Resources/app/administration/src/main.js
@@ -1,5 +1,6 @@
import './init/api-service.init';
import './module/my-parcel';
+import './module/sw-order/page/sw-order-list/sw-order-list';
import './service/myparcelApiTestService';
import './service/myparcelDropOffService'
import './component/myparcel-api-test-button';
diff --git a/src/Resources/app/administration/src/module/sw-order/page/sw-order-list/sw-order-list.html.twig b/src/Resources/app/administration/src/module/sw-order/page/sw-order-list/sw-order-list.html.twig
new file mode 100644
index 0000000..61a16d9
--- /dev/null
+++ b/src/Resources/app/administration/src/module/sw-order/page/sw-order-list/sw-order-list.html.twig
@@ -0,0 +1,25 @@
+{% block sw_order_list_grid_columns_billing_address %}
+ {% parent %}
+
+ Afbeelding template
+
+
+ Quantity template
+
+
+ Download template
+
+{% endblock %}
+
+ {% block sw_order_list_grid_columns_actions_view %}
+{# #}
+{# {{ $tc('sw-myparcel.orders.buttons.createConsignmentsButton') }}#}
+{# #}
+
+ {{ $tc('sw-myparcel.orders.buttons.createConsignmentsButton') }}
+
+ {% parent %}
+ {% endblock %}
diff --git a/src/Resources/app/administration/src/module/sw-order/page/sw-order-list/sw-order-list.js b/src/Resources/app/administration/src/module/sw-order/page/sw-order-list/sw-order-list.js
new file mode 100644
index 0000000..f040e68
--- /dev/null
+++ b/src/Resources/app/administration/src/module/sw-order/page/sw-order-list/sw-order-list.js
@@ -0,0 +1,46 @@
+import template from './sw-order-list.html.twig';
+const { Component } = Shopware;
+
+// Uitleg via Bjorn https://gist.github.com/bheijink/b8ff3b98818a2cc6db995ecfb2bb06ea
+
+Component.override('sw-order-list', {
+ template,
+
+ methods: {
+ getOrderColumns() {
+ var thisOrderColumns = this.$super('getOrderColumns');
+ thisOrderColumns.splice(1, 0, {
+ property: 'afbeelding',
+ label: 'Afbeelding',
+ routerLink: 'sw.order.detail',
+ allowResize: true,
+ isImage: true,
+ primary: true
+ }, {
+ property: 'download',
+ label: 'Download',
+ routerLink: 'sw.order.detail',
+ allowResize: true,
+ primary: true
+ }, {
+ property: 'quantitycount',
+ label: 'Totaal aantal',
+ routerLink: 'sw.order.detail',
+ allowResize: true,
+ primary: true
+ });
+ return thisOrderColumns;
+ },
+ // getOrderActions() {
+ // var thisOrderActions = this.$super('getOrderActions');
+ // thisOrderActions.splice(1, 0, {
+ // property: 'quantitycount',
+ // label: 'Totaal aantal',
+ // routerLink: 'sw.order.detail',
+ // allowResize: true,
+ // primary: true
+ // } );
+ // return thisOrderActions;
+ // }
+ }
+});
\ No newline at end of file