//Change the layout of Single Product page by reordering the priorities
add_action( 'woocommerce_before_single_product', 'single_product_layout' );
function single_product_layout() {
// Disable the hooks so that their order can be changed.
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 );
// Put the price first.
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 5 );
// Include the category/tags info.
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 10 );
// Then the product short description.
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 40 );
// Move the title to near the end.
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 50 );
// And finally include the 'Add to cart' section.
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 60 );
}