From 4a34578e59c50215e2df055e8e95850fc3d61e9b Mon Sep 17 00:00:00 2001 From: Malin Date: Fri, 23 Jan 2026 18:05:17 +0100 Subject: [PATCH] Add competitor benchmark pricing and profit optimization Features: - Fetch competitor benchmark prices from Google Price Competitiveness Report - New get_all_benchmark_prices() method in Google API class - Display competitor price instead of own Google price - Calculate recommended price (slightly below competitor) - Show potential gain/loss per product if price is optimized - Color-coded status: - Green: Your price is cheaper (opportunity to increase) - Blue: Competitive (within 2% of competitor) - Red: Expensive (above competitor) - Summary statistics showing: - Products with benchmark data - Count by status (cheaper/competitive/expensive) - Total potential gain if all prices optimized Co-Authored-By: Claude Opus 4.5 --- admin/class-informatiq-sp-admin.php | 105 ++++++++++++++------ assets/js/admin.js | 99 ++++++++++++++---- includes/class-informatiq-sp-google-api.php | 82 +++++++++++++++ 3 files changed, 235 insertions(+), 51 deletions(-) diff --git a/admin/class-informatiq-sp-admin.php b/admin/class-informatiq-sp-admin.php index b414787d..39684678 100644 --- a/admin/class-informatiq-sp-admin.php +++ b/admin/class-informatiq-sp-admin.php @@ -600,14 +600,15 @@ class Informatiq_SP_Admin {