Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/c87812352f1f694824153d065fba3f05 to your computer and use it in GitHub Desktop.
Save AshlinRejo/c87812352f1f694824153d065fba3f05 to your computer and use it in GitHub Desktop.
Discount rules v2: Display Cross sell on after cart
add_action('advanced_woo_discount_rules_before_loaded', function (){
if(class_exists('\WDRPro\App\Rules\BuyXGetY')){
remove_all_filters( 'woocommerce_cart_collaterals', 9 );
add_action( 'woocommerce_after_cart', array('\WDRPro\App\Rules\BuyXGetY', 'loadCrossSellDisplay'), 9 );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment