Home Forums Basel support forum How to move Upsell Product above Product Description in Single Product View?

How to move Upsell Product above Product Description in Single Product View?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #112048

    hungbuiquoc
    Participant

    I try to change priority in action but not working

    /* Change position of Upsell and Related*/
    	function basel_woocommerce_hooks_child() {
    
    		remove_action( 'basel_woocommerce_after_sidebar', 'woocommerce_upsell_display', 10 );
    		remove_action( 'basel_woocommerce_after_sidebar', 'woocommerce_output_related_products', 20 );
    		remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
    		add_action( 'basel_woocommerce_after_sidebar', 'woocommerce_upsell_display', 10 );
    		
    		add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 15 );
    		add_action( 'basel_woocommerce_after_sidebar', 'woocommerce_output_related_products', 20 );
    	}
    
    	add_action( 'wp', 'basel_woocommerce_hooks_child', 2000 );
    #112064

    Artem Temos
    Keymaster

    Hi,

    Please, provide us your admin access so we can login and check this on your side. Send us a link to the product with upsells and be sure that you have activated the child theme.

    Thank you in advance.

Viewing 2 posts - 1 through 2 (of 2 total)