From eaff86aad1be088f173279b03af759b5b022e66e Mon Sep 17 00:00:00 2001 From: Malin Date: Fri, 23 Jan 2026 18:49:47 +0100 Subject: [PATCH] Add SKU column before product title - Added SKU column as second column after checkbox - SKU displayed in monospace font for readability - Slightly reduced product name truncation to fit table Co-Authored-By: Claude Opus 4.5 --- admin/class-informatiq-sp-admin.php | 1 + assets/js/admin.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/class-informatiq-sp-admin.php b/admin/class-informatiq-sp-admin.php index 80ed6908..2640bcf5 100644 --- a/admin/class-informatiq-sp-admin.php +++ b/admin/class-informatiq-sp-admin.php @@ -620,6 +620,7 @@ class Informatiq_SP_Admin { + diff --git a/assets/js/admin.js b/assets/js/admin.js index a71e2001..64b7ce59 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -300,7 +300,7 @@ // Render table rows var html = ''; if (pageProducts.length === 0) { - html = 'No products found.'; + html = 'No products found.'; } else { pageProducts.forEach(function(product) { var localPrice = product.local_price ? data.currency + parseFloat(product.local_price).toFixed(2) : '-'; @@ -348,7 +348,8 @@ html += ''; html += '' + checkbox + ''; - html += '' + self.truncate(product.name, 40) + ''; + html += '' + product.sku + ''; + html += '' + self.truncate(product.name, 35) + ''; html += '' + localPrice + priceLabel + ''; html += '' + suggestedPrice + ''; html += '' + percentDiffHtml + '';