is_in_stock() ) { continue; } $post = $product->post; setup_postdata( $post ); ?> ID ); setup_postdata( $parent_product_post ); ?>
is_sold_individually() || ! $product->is_purchasable() ) : ?> 'quantity[' . $product_id . ']', 'input_value' => ( isset( $_POST['quantity'][$product_id] ) ? $_POST['quantity'][$product_id] : 0 ), 'min_value' => apply_filters( 'woocommerce_quantity_input_min', 0, $product ), 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product->get_stock_quantity(), $product ) ) ); ?> get_price_html(); if ( $availability = $product->get_availability() ) { $availability_html = empty( $availability['availability'] ) ? '' : '

' . esc_html( $availability['availability'] ) . '

'; echo apply_filters( 'woocommerce_stock_html', $availability_html, $availability['availability'], $product ); } ?>