Skip to content

Commit 41da6a0

Browse files
committed
fix: migrate ORDER_NR placeholder to ORDER_ID in label descriptions
Add transformation in PdkSettingsMigration to replace [ORDER_NR] with [ORDER_ID] during settings migration to maintain consistency with WooCommerce implementation and ensure the placeholder works correctly.
1 parent 6429b5b commit 41da6a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Migration/Pdk/PdkSettingsMigration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ private function getSettingsTransformationMap(): Generator
374374
return strtr((string) $value, [
375375
'{order.id}' => '[ORDER_ID]',
376376
'{order.reference}' => '[ORDER_ID]',
377+
'[ORDER_NR]' => '[ORDER_ID]',
377378
]);
378379
})
379380
);

0 commit comments

Comments
 (0)