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:
@@ -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 || '',
|
||||
|
||||
Reference in New Issue
Block a user