Cross-sells and Upsells - Move Cross-sells above the product listing at checkout

By default with the  Cross-sells and Upsells addon, the Cross-sells are shown just below the product listing on the checkout page. If you would like them to appear above the product listing you can paste the following code into your theme’s functions.php:

<?php

function sumobi_edd_csau_move_cross_sells_at_checkout() {
    // remove cross-sells from after the product listing at checkout
    remove_action( 'edd_after_checkout_cart', 'edd_csau_display_on_checkout_page' );

    // add the cross-sells before the product listing at checkout
    add_action( 'edd_before_checkout_cart', 'edd_csau_display_on_checkout_page' );
}
add_action( 'template_redirect', 'sumobi_edd_csau_move_cross_sells_at_checkout' );