yes i have updated version
function clear_wc_shipping_rates_cache(){ if(!function_exists(‘WC’) || !isset(WC()->cart)) return; if ( !WC()->customer ) return; // this allows it to work with woocommerce point of sales plugin $packages = WC()->cart->get_shipping_packages(); foreach ($packages as $key => $value) { $shipping_session = “shipping_for_package_$key”; unset(WC()->session->$shipping_session); } }
this i put on line 9?
You have to replace the line no. 9 with this new code
if(!function_exists(‘WC’) || !isset(WC()->cart)) return;
the old code will be like this
if(!isset(WC()->cart) || !function_exists(‘WC’)) return;
if(!function_exists('WC') || !isset(WC()->cart)) return;
use this as the code we pasted normally in the char box has semilocon converted so use this from code block
we will be login of in 10 min, will be available tomorrow