• Resolved sockguy

    (@kuzkuz86)


    Hello everyone

    I’ve tried solving this problem for a couple of days, so I’m really hoping that you guys can help me out ??

    I managed to move the cross-sells area below the cart summary table, but it’s still visible at the old position.

    I used this snippet, which should do the trick, but it doesn’t:

    remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display');
    
    add_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display', 50 );

    You can see the issue here: https://flottesokker.dk/problem.jpg

Viewing 1 replies (of 1 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @kuzkuz86,

    I’ve tried this snippet on my test site and it worked. Can you see if that works for you as well?

    
    remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
    add_action( 'woocommerce_after_cart_totals', 'woocommerce_cross_sell_display' );
    

    If not, I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    You can also visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘remove action (cross_sell_display) doesn’t work’ is closed to new replies.