Skip to content

Instantly share code, notes, and snippets.

@amdrew
Created December 15, 2014 07:04
Show Gist options
  • Save amdrew/c9985b8ea2bbadc6cf2a to your computer and use it in GitHub Desktop.
Save amdrew/c9985b8ea2bbadc6cf2a to your computer and use it in GitHub Desktop.
EDD Cross-sell & Upsell - Move Cross-sells above the product listing at checkout
<?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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment