Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
]
},
"config": {
"optimize-autoloader": true
"optimize-autoloader": true,
"allow-plugins": {
"symfony/runtime": true
}
}
}
}
1 change: 1 addition & 0 deletions src/Resources/app/administration/src/main.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% block sw_order_list_grid_columns_billing_address %}
{% parent %}
<template #column-afbeelding="{ item }">
<div>Afbeelding template</div>
</template>
<template #column-quantitycount="{ item }">
<div>Quantity template</div>
</template>
<template #column-download="{ item }">
<div>Download template</div>
</template>
{% endblock %}

{% block sw_order_list_grid_columns_actions_view %}
{# <sw-button :disabled="!createMultipleConsignmentsAvailable" variant="primary" :square="false" :block="false" :isLoading="false" @click="onOpenCreateMultipleConsignmentsModal">#}
{# {{ $tc('sw-myparcel.orders.buttons.createConsignmentsButton') }}#}
{# </sw-button>#}
<sw-context-menu-item
class="sw-order-list__order-export-action"
:router-link="{ name: 'sw.order.export', params: { id: item.id } }"
>
{{ $tc('sw-myparcel.orders.buttons.createConsignmentsButton') }}
</sw-context-menu-item>
{% parent %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -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;
// }
}
});