<ul><li><strong>inc_shoppingcart.php</strong> — Added <code>is_array($data)</code> guard before <code>count($data)</code>; prevents PHP 8 deprecated warning when cart query returns false/null</li><li><strong>inc_shoppingcart.php</strong> — Fixed <code>myOrderHistory()</code>: added <code>dataType:"json"</code>, null guard on <code>meta_value</code> before JSON.parse (prevented crash on orders without meta), added <code>error:</code> handler (swal was stuck open on AJAX failure)</li><li><strong>inc_shoppingcart.php</strong> — Fixed <code>fetchOrderDetails()</code>: wrapped <code>JSON.parse(meta_value)</code> in try/catch + null guard on <code>meta_values.items[0]</code> (uncaught exception crashed entire order history section), added <code>error:</code> handler</li><li><strong>inc_shoppingcart.php</strong> — Added <code>onerror</code> handler to order item images (broken images displayed instead of fallback)</li><li><strong>custom_js.php</strong> — Fixed critical logic bug: checkout redirect condition used <code>||</code> (always true) instead of <code>&amp;&amp;</code> — users with empty DRAFTID were being redirected to checkout with a blank order ID</li><li><strong>custom_js.php</strong> — Removed <code>console.log(DRAFTID)</code> debug artifact leaking internal state to browser console</li><li><strong>custom_js.php</strong> — Removed <code>alert("ERROR HERE")</code> debug artifact that blocked cart UI on AJAX error</li><li><strong>custom_js.php</strong> — Replaced all 20x <code>$.parseJSON()</code> with <code>JSON.parse()</code> (deprecated since jQuery 3.0)</li><li><strong>custom_js.php</strong> — Fixed variable shadowing: coupon success handler redeclared <code>var response</code> over the AJAX parameter; renamed inner variable to avoid collision</li><li><strong>custom_js.php</strong> — Removed <code>async: false</code> from <code>getTaxRate()</code> (deprecated, blocks browser UI thread)</li><li><strong>check_subscription_items.php</strong> — Fixed undefined <code>$host</code> variable in subscription cancellation email (PHP notice on every cron run)</li></ul>