Migrate PrestaShop config to Config API blocks and add permissions.

Replace custom ShopConfig pages/models with registerConfigBlocks, load config from Config store, and enforce RBAC on methods.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fatequod
2026-07-22 12:20:30 +02:00
co-authored by Cursor
parent 139ac5cb52
commit 5a1e6ffbdd
27 changed files with 341 additions and 1206 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ async function importFromPSOrder(orderId, api, config) {
await Promise.all(
products
.filter(p => p.sourceId && p.name)
.map(p => Core.callModule( 'core/orders', 'product.upsert', {
.map(p => Core.callModule( 'core/products', 'upsert', {
sourceModule: 'core/prestashop',
sourceId: String(p.sourceId),
sku: p.sku || '',