Skip to content

Instantly share code, notes, and snippets.

@iamsathyaseelan
Created February 28, 2020 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamsathyaseelan/ae1e6c634035abba022901f1f8cd1ffe to your computer and use it in GitHub Desktop.
Save iamsathyaseelan/ae1e6c634035abba022901f1f8cd1ffe to your computer and use it in GitHub Desktop.
exit intent popup was not showed with areo checkout
/* 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