Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1271407
    warhost
    Participant

    Hi,

    I am trying to move the Cross-Sells below the cart table (where it says the prices).

    How is this done properly?

    I tried adding a filter according to this, but had no success:

    // Remove Cross Sells From Default Position
    remove_action( ‘woocommerce_cart_collaterals’, ‘woocommerce_cross_sell_display’ );
    // ———————————————
    // Add them back UNDER the Cart Table
    add_action( ‘woocommerce_after_cart_table’, ‘woocommerce_cross_sell_display’ );

    Any ideas?

    #1271569
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1272012
    warhost
    Participant
    This reply has been marked as private.
    #1272035
    Christian
    Moderator

    Please use this

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

    Tested that in my test site and it works.

    Thanks.

    #1277635
    warhost
    Participant

    Hi,

    I added this, but now there are no cross sells shown at all in the checkout.

    #1278067
    Rad
    Moderator

    Hi there,

    Would you mind providing your FTP login credentials as well? And please provide a mockup design of how it should be. Filters and hooks has limitation, it can’t go further where it’s assigned. Maybe your target location doesn’t have that hook.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1271407 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>