Created
February 28, 2020 08:05
-
-
Save iamsathyaseelan/ae1e6c634035abba022901f1f8cd1ffe to your computer and use it in GitHub Desktop.
exit intent popup was not showed with areo checkout
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
/* Retainful exit intent popup in checkout*/ | |
add_filter("rnoc_load_exit_intent_popup_scripts_after","rnoc_load_exit_intent_popup_scripts",10); | |
function rnoc_load_exit_intent_popup_scripts($dependencies){ | |
if(is_checkout()){ | |
return array(); | |
} | |
return $dependencies; | |
} | |
add_filter("rnoc_load_exit_intent_popup_settings","rnoc_load_exit_intent_popup_settings",10); | |
function rnoc_load_exit_intent_popup_settings($settings){ | |
if(is_checkout()){ | |
if(isset($settings['consider_cart_created_as_hash'])){ | |
$settings['consider_cart_created_as_hash'] = 'yes'; | |
} | |
} | |
return $settings; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment