fix(prestashop): import customer messages across checkout sources (1.1.8)

This commit is contained in:
fatequod
2026-09-10 16:08:44 +02:00
parent 7c917d7a59
commit 8230135a2e
9 changed files with 290 additions and 5 deletions
+3
View File
@@ -272,6 +272,8 @@ async function importFromPSOrder(orderId, api, config) {
});
}
const customerNotes = await api.getCustomerNotes(order.id, order.id_cart, order.gift_message);
const coreOrder = await Core.callModule( 'core/orders', 'create', {
statusId: statusId,
customer: {
@@ -320,6 +322,7 @@ async function importFromPSOrder(orderId, api, config) {
payments,
discounts,
invoice: invoiceDataForOrder,
notes: customerNotes.map(text => ({ text, type: 'customer_message' })),
createdAt: new Date(order.date_add),
});