Created
December 15, 2014 07:04
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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