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 );WooCommerce Bundled Products
Add WooCommerce bundles to your online store with WooCommerce Bundled Products. Create custom product bundles with a discount.
Was this helpful?
Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.