/* ============================================================ 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
/* ============================================================ PCBoost — GA4 WooCommerce Ecommerce Events v1.0 (WPCode snippet — PHP, Run Everywhere) Sends add_to_cart, begin_checkout, and purchase events into the GA4 property ALREADY loaded on the site (G-K2YZ3JVMP4). Does not load a new gtag.js script or create…Continue reading
/* ============================================================ PCBoost — Trustpilot Overflow Reviews v1.2 (WPCode snippet — PHP, Run Everywhere) Trustpilot’s own free plugin sends the first PCB_TP_MONTHLY_QUOTA (deliberately set a little under 50, since this snippet can’t see Trustpilot’s real internal count and it’s safer…Continue reading
/* ============================================================ PCBoost — Shop Page Intro Content (WPCode snippet — PHP, Run Everywhere) Adds a styled intro block above the product grid on the main Shop page only (page 1, not paginated pages – avoids the same block repeating…Continue reading
/* ============================================================ PCBoost — Google Customer Reviews Opt-In v1.0 (WPCode snippet — PHP, Run Everywhere) Fires Google’s required survey opt-in module on the WooCommerce order-received page – the same moment GA4’s purchase event fires, immediately after checkout completes. This is…Continue reading
/* ============================================================ PCBoost — Job Application Form (WPCode snippet — PHP, Run Everywhere) Front end: place the shortcode [pcb_job_application] on a page (e.g. /careers/ or /work-with-us/). Candidates tick whichever skill areas genuinely apply to them – nothing is mandatory beyond…Continue reading