Created
November 25, 2021 09:32
-
-
Save AshlinRejo/c87812352f1f694824153d065fba3f05 to your computer and use it in GitHub Desktop.
Discount rules v2: Display Cross sell on after cart
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
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