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
/* | |
* 1. wcdn_after_branding => After the invoice logo | |
* 2. wcdn_after_addresses => After displaying the billing and shipping address | |
* 3. wcdn_after_info => After order details | |
* 4. wcdn_after_items => After the order items table | |
* 5. wcdn_after_notes => After the order notes | |
* 6. wcdn_after_thanks => After thanks | |
* 7. wcdn_after_colophon => After colophon | |
* | |
* Replace `wcdn_after_addresses` with any other mentioned hooks to change the display position |
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
/* | |
* Replace 'add_to_cart_button_classes' values with comma seperated multiple classes | |
*/ | |
add_filter('retainful_premium_add_to_cart_collection_button_classes',function($classes){ | |
//For version 1.0.9 above | |
return $classes['add_to_cart_button_classes'] = '.elementor-button-link'; | |
//For version 1.0.9 and below | |
//return array('add_to_cart_button_classes' => '.elementor-button-link'); | |
}); |
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
<?php | |
//Example:https://nimb.ws/PumFqI | |
if(!function_exists("rnoc_exit_intent_popup_condition_coupons")){ | |
function rnoc_exit_intent_popup_condition_coupons($to_replace){ | |
$cart_total = 0; | |
if(function_exists("WC")){ | |
$cart_total = WC()->cart->total; | |
} | |
$coupon_code = ""; | |
if($cart_total >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
<?php | |
add_filter("rnoc_abandoned_cart_invalid_order_statuses","rnoc_invalid_order_status_to_consider_as_abandoned_cart"); | |
if(!function_exists("rnoc_invalid_order_status_to_consider_as_abandoned_car")){ | |
function rnoc_invalid_order_status_to_consider_as_abandoned_cart($invalid_order_status){ | |
/* Replace processing with invalid order status */ | |
$invalid_order_status[] = "processing"; | |
return $invalid_order_status; | |
} | |
} | |
?> |
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
<?php | |
if(is_admin()) { | |
add_action('init', function () { | |
$path = ABSPATH . 'wp-content/retainful.log'; | |
if (file_exists($path)) { | |
unlink($path); | |
} | |
}); | |
} | |
?> |
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
wp-content/themes/tatara/js/ajax.js | |
Line number : 12 | |
Original: | |
========= | |
if (response) { | |
setTimeout(function () { | |
$('.cart_popup').html(response); | |
}, 500); |
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('rnoc_get_product_image_src','rnoc_override_product_image_url',10,2); | |
function rnoc_override_product_image_url($url,$product){ | |
$url = str_replace('wp-content/uploads','zova_uploads',$url); | |
return $url; | |
} |
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){ |
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('rnoc_before_displaying_next_order_coupon','rnoc_before_displaying_next_order_coupon',10,2); | |
function rnoc_before_displaying_next_order_coupon($message,$order){ | |
if (method_exists($order, 'get_status')) { | |
$order_status = $order->get_status(); | |
$order_status = strtolower($order_status); | |
if($order_status == "processing"){ | |
return $message; | |
}else{ | |
return ''; | |
} |
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('rnoc_abandoned_cart_order_status','rnoc_abandoned_cart_order_status',10,2); | |
function rnoc_abandoned_cart_order_status($order_status,$order){ | |
if(in_array($order_status,array("cancelled","failed"))){ | |
$order_status = "pending"; | |
} | |
return $order_status; | |
} |
OlderNewer