Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Sanam Patel

    (@sanampatel)

    Hey!

    I just found the solution for the same, it’s small coding error.

    In line number 353 & 356 replace the “in_ex_city” with word “in_ex_pincode

    from line 346 to 360 code should be changed to this :

    if($cod_enabled && $cod_pincodes){
    	$cod_pincodes_arr = explode(',',$cod_pincodes);
    	if($customer_detail['s_city']){
    		$shipping_postcode = trim($customer_detail['s_postcode']);
    	}else{
    		$shipping_postcode = trim($customer_detail['shipping_postcode']);
    	}
    	if($shipping_postcode && $in_ex_pincode=='include' && !in_array($shipping_postcode,$cod_pincodes_arr)){
    		unset($gateways['cod']);
    		$cod_enabled=0;
    	}elseif($shipping_postcode && $in_ex_pincode=='exclude' && in_array($shipping_postcode,$cod_pincodes_arr)){
    		unset($gateways['cod']);
    		$cod_enabled=0;
    	}
    }

    Hope this will work for next update of this plugin.

Viewing 1 replies (of 1 total)