/** * 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
<meta name=”google-adsense-account” content=”ca-pub-9481928342352849″>Continue reading