remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );
remove_action( 'woocommerce_after_single_product_summary', ' ', 15 );
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);
remove_action( 'woocommerce_after_single_product_summary', 'woo_wc_related_products', 20);
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_upsells', 15 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);
function woocommerce_output_upsells() {
woocommerce_upsell_display( 30,3 ); // products, 3
}
function woocommerce_output_related_products() {
woocommerce_related_products(6,3); // products, columns
}
A different approach to the official way.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.