Last active
November 21, 2023 06:03
-
-
Save AnanthFlycart/d19364c2ca4a4e4eb6c3620cbc0f3f16 to your computer and use it in GitHub Desktop.
CUW: FBT redirect to cart page
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('cuw_fbt_products_added_to_cart', function () { | |
| if (function_exists('wp_redirect') && function_exists('wc_get_cart_url')) { | |
| wp_redirect(wc_get_cart_url()); | |
| exit; | |
| } | |
| }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOTE: It requires Checkout Upsell v1.4.2 or later