/* ============================================================ PCBoost — Bundle & Pricing Watchdog v1.0 (WPCode, Run Everywhere) Rides pcb_twin_resync at priority 90 (after merge + bundle sync). Checks invariants, auto-fixes what is safe, emails admin when anything was found. Silent when all is well. Requires:…Continue reading
/* ============================================================ PCBoost Notify UX + Insights v1.0 (WPCode — PHP, Run Everywhere) Add-on to Notifications v2.1 — activate alongside it. 1. IN-STOCK products: the price-watch widget is hidden on load and slides in bottom-right after PCB_NOTIFY_DWELL seconds of dwell…Continue reading
/* ============================================================ PCBoost — Request a Quote / Make an Offer v1.3 (WPCode snippet — PHP, Run Everywhere) Front end: create a WordPress page (e.g. /request-a-quote/) containing the shortcode [pcb_request_quote] Customers search by MPN, EAN/GTIN, SKU or product ID, add…Continue reading
/* ============================================================ PCBoost — Composite Component Specs v1.1 (WPCode snippet — PHP, Run Everywhere) Shows key attributes/ACF of the SELECTED component product inside Composite Products option views and the summary, using ONLY public CP hooks — the plugin files are…Continue reading
/* * lokalstolz | Quelltext ohne WordPress-Spuren * Version 1.0.2 (04.12.2026), PHP, überall * 1.0.2: orbital-theme nur noch per Schalter je Projekt (Option ls_quelltext[‘orbital_aus’], Standard aus) * * 1. Übersetzungsdaten von Skripten (wp.i18n, z. B. wp-a11y) ohne den Block “comment”.…Continue reading
/* ============================================================ PCBoost — Bundle Stock Consumption v1.0 (WPCode snippet — PHP, Run Everywhere) Problem it closes: a bundle sale on WooCommerce reduced only the bundle’s own stock. The PARENT drive’s stock stayed put, so the single and every sibling…Continue reading
/* PCBoost — Composite live capacity total v1.1 (mobile-safe ancestor walk) */ add_action( ‘wp_footer’, function () { if ( ! function_exists( ‘is_product’ ) || ! is_product() ) { return; } ?>Continue reading
/* PCBoost — Composite: restrict drive options by pack size (post-query). */ add_filter( ‘woocommerce_composite_component_options’, function ( $options, $component_id, $composite ) { if ( ! is_object( $composite ) || ! method_exists( $composite, ‘get_component’ ) ) { return $options; } $comp =…Continue reading
/* PCBoost — Accessible add-to-cart labels (AI agents + screen readers) */ add_action( ‘wp_footer’, function () { ?>Continue reading
/* PCBoost — Cart-action URLs: nofollow, noindex, accessible labels */ /* 1. noindex any URL carrying a cart action (must be CRAWLABLE for this to be seen) */ add_action( ‘template_redirect’, function () { if ( isset( $_GET[‘add-to-cart’] ) || isset(…Continue reading