Last active
October 20, 2023 12:40
-
-
Save AnanthFlycart/a5c615bc22fbbfbe8a964ded3dce96ce to your computer and use it in GitHub Desktop.
CUW: Cart Upsells on Mini-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
| // NOTE: This snippets works in Checkout Upsell plugin version 1.4.1 and above | |
| add_action('woocommerce_mini_cart_contents', function () { | |
| if (defined('CUW_VERSION') && version_compare(CUW_VERSION, '1.4.1', '>=')) { | |
| if (method_exists('\CUW\App\Modules\Campaigns\CartUpsells', 'getOffersHtml')) { | |
| echo \CUW\App\Modules\Campaigns\CartUpsells::getOffersHtml('shortcode', true, false); | |
| } | |
| } | |
| }, 20); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment