<?php
$p = json_decode(file_get_contents('data/products.json'), true);
$with = 0;
foreach ($p as $prod) {
    if (!empty($prod['qr_code'])) $with++;
}
echo "Products with QR codes: {$with} / " . count($p);
?>
