add_filter( ‘lpfw_filter_get_settings_sections’, function( $response ) { $data = $response->get_data(); // Build options dynamically from all registered WooCommerce order statuses $status_options = array(); foreach ( wc_get_order_statuses() as $slug => $label ) { $status_options[] = array( ‘key’ => str_replace( ‘wc-‘, ”, $slug…Continue reading
Shop All Products Gym wear, rugby designs & Celtic collections Category: All Gym Wear Rugby Designs Celtic Designs FeaturedPrice: Low to HighPrice: High to LowName: A to ZName: Z to ANewest First Loading products…Continue reading
/** * Fix 1: Product page — prevent WWPP from overriding the quantity input args for * WC Product Bundle child items. * * WC Product Bundles names bundled item quantity fields ‘bundle_quantity_{id}’. * We capture WC PB’s intended args…Continue reading
add_filter( ‘woocommerce_add_cart_item_data’, function( $cart_item_data, $product_id ) { $og_channel = get_post_meta( $product_id, ‘og_channel’, true ); if ( $og_channel ) { $cart_item_data[‘og_channel’] = $og_channel; } return $cart_item_data; }, 10, 2 );Continue reading
add_filter( ‘woocommerce_coupon_validate_minimum_amount’, function ( $is_invalid, $coupon, $subtotal ) { if ( ! $is_invalid ) { return $is_invalid; } $bogo_deals = get_post_meta( $coupon->get_id(), ‘_acfw_bogo_deals’, true ); if ( empty( $bogo_deals ) ) { return $is_invalid; } $pre_bogo_subtotal = 0.0; foreach (…Continue reading