/* ============================================================ PCBoost — Category menus (DYNAMIC, shared engine) REPLACES the previous “Mobile category drawer” snippet entirely. One data source -> two renderers: [pcb_mobile_drawer] mobile slide-in drawer (unchanged markup) [pcb_desktop_catmenu] desktop “Browse Categories” hover mega-menu Both auto-update from live taxonomy…Continue reading
/* ============================================================ PCBoost — Cart badge live-update fix WPCode PHP snippet (Run Everywhere) OR functions.php. Registers .cart-badge as a WooCommerce cart fragment so the number updates instantly on add-to-cart, without a full reload, and survives page caching. ============================================================ */ add_filter(…Continue reading
/* ============================================================ [pcb_deals] v3 — on-sale products, in-stock first, PAGINATED. REPLACES the previous “Deals shortcode” snippet entirely. Includes the star-rating removal. Use on /deals/ with [pcb_deals] Options: [pcb_deals limit=”24″ columns=”4″] ============================================================ */ add_shortcode( ‘pcb_deals’, function( $atts ) { remove_action( ‘woocommerce_after_shop_loop_item_title’,…Continue reading
/* ============================================================ PCBoost — Bundle price/stock auto-sync (v1.0, WHITELISTED TEST) Derives bundle price/stock from the parent single: regular = parent effective × n (the “was” price) sale = regular × (1 – tier discount) stock = floor(parent stock / n)…Continue reading
/* ============================================================ 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