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_filter('cuw_offer_reload_page', function ($reload, $campaign_type) { | |
if ($campaign_type == 'cart_upsells') { | |
return true; | |
} | |
return $reload; | |
},10,2); |
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_filter('cuw_post_purchase_supported_payment_gateways', function ($gateways) { | |
$gateways['eh_stripe_pay'] = esc_html__('Stripe By WebToffee(CC)', 'payment-gateway-stripe-and-woocommerce-integration'); | |
return $gateways; | |
}); |
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_filter('cuw_product_image_attributes', function ($attributes, $product) { | |
$attributes['alt'] = __('The Alternative Text', 'checkout-upsell-woocommerce'); //Here You can change your own text | |
return $attributes; | |
},10,2); |
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_filter('script_loader_src', function($src, $handle) { | |
if (is_admin() && !empty($_GET['page']) && $_GET['page'] === 'checkout-upsell-woocommerce') { | |
if (strpos($src, 'filter-everything-pro/assets/js/select2/select2.min.js') !== false) { | |
return false; | |
} | |
} | |
return $src; | |
}, 10000, 2); |
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_filter('style_loader_src', function($src, $handle) { | |
if (is_admin() && !empty($_GET['page']) && $_GET['page'] === 'checkout-upsell-woocommerce') { | |
if (strpos($src, 'filter-everything-pro/assets/css/select2/select2.min.css') !== false) { | |
return false; | |
} | |
} | |
return $src; | |
}, 10000, 2); |
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_filter('cuw_post_purchase_supported_payment_gateways', function ($gateways) { | |
$gateways['paymentflo_payment_savecc'] = esc_html__('PaymentFlo(CC)', 'paymentflo'); | |
return $gateways; | |
}); |
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('admin_head', function () { ?> | |
<style> | |
#cuw-page #overlay { | |
z-index: 0 !important; | |
} | |
</style> | |
<?php }) ?> |
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('wp_footer', function () { | |
$checkout_url = wc_get_checkout_url(); | |
?> | |
<script> | |
jQuery(document).on('click', '.cuw-modal .cuw-modal-close', function(e) { | |
e.preventDefault(); | |
window.location.replace("<?php echo $checkout_url; ?>"); | |
}) | |
</script> | |
<?php },100); ?> |
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_filter('cuw_fbt_product_ids_to_display', function ($ids) { | |
if (!empty($ids) && is_array($ids) | |
&& function_exists('wc_get_product_ids_on_sale')) { | |
$on_sale_ids = wc_get_product_ids_on_sale(); | |
$ids = array_diff($ids, $on_sale_ids); | |
} | |
return $ids; | |
}); |
NewerOlder