Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/themify-.../template.../wc/loop
File: add-to-cart.php
<?php
[0] Fix | Delete
global $product;
[1] Fix | Delete
$isAvaialble=$product->is_purchasable() && $product->is_in_stock();
[2] Fix | Delete
if($isAvaialble===true && !empty($args['label'])){
[3] Fix | Delete
global $label;
[4] Fix | Delete
$label=$args['label'];
[5] Fix | Delete
if(!function_exists('tb_pro_add_to_cart_text')){
[6] Fix | Delete
function tb_pro_add_to_cart_text($text){
[7] Fix | Delete
remove_filter('woocommerce_product_single_add_to_cart_text','tb_pro_add_to_cart_text');
[8] Fix | Delete
remove_filter('woocommerce_product_add_to_cart_text','tb_pro_add_to_cart_text');
[9] Fix | Delete
global $label;
[10] Fix | Delete
$text = $label;
[11] Fix | Delete
$label=null;
[12] Fix | Delete
return $text;
[13] Fix | Delete
}
[14] Fix | Delete
}
[15] Fix | Delete
add_filter('woocommerce_product_add_to_cart_text','tb_pro_add_to_cart_text');
[16] Fix | Delete
add_filter('woocommerce_product_single_add_to_cart_text','tb_pro_add_to_cart_text');
[17] Fix | Delete
}
[18] Fix | Delete
?>
[19] Fix | Delete
<div class="tb_pro_loop_add_to_cart tb_pro_add_to_cart<?php if(!empty($args['fullwidth']) && 'no' !== $args['fullwidth']):?> buttons-fullwidth<?php endif;?>">
[20] Fix | Delete
<?php
[21] Fix | Delete
if($args['quantity']!=='yes' || $isAvaialble===false){
[22] Fix | Delete
woocommerce_template_loop_add_to_cart();
[23] Fix | Delete
}
[24] Fix | Delete
else{
[25] Fix | Delete
$origVal=isset($_POST['quantity'])?$_POST['quantity']:false;
[26] Fix | Delete
$_POST['quantity'] =1;
[27] Fix | Delete
woocommerce_simple_add_to_cart();
[28] Fix | Delete
if($origVal!==false){
[29] Fix | Delete
$_POST['quantity'] =$origVal;
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
$args=null;
[33] Fix | Delete
?>
[34] Fix | Delete
</div>
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function