fix(prestashop): import customer messages across checkout sources (1.1.8)
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user