Help Docs Software Kadence Kadence Iconic Kadence Iconic WooCommerce Bundled Products How to Move the Position of Your Bundled Product

How to Move the Position of Your Bundled Product

By default, your bundled product will show after the main image and product summary. You may want to move the bundled products up into the summary area. If so, this guide will walk you through how to do it.

Add the following snippet to your theme’s functions.php file (This will add the bundled products just after the product description.):

/**
 * Move the bundled products.
 */
function iconic_move_bundled_products() {
    global $iconic_woo_bundled_products, $product;

    if ( ! $product ) {
        return;
    }

    if ( $product->get_type() !== 'bundled' ) {
        return;
    }

    remove_action( 'woocommerce_after_single_product_summary', array( $iconic_woo_bundled_products, 'output_bundled_products' ), 5 );
    add_action( 'woocommerce_single_product_summary', array( $iconic_woo_bundled_products, 'output_bundled_products' ), 25 );
}

add_action( 'woocommerce_before_single_product', 'iconic_move_bundled_products', 10 );

Was this article helpful?