Viewing 4 replies - 1 through 4 (of 4 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.

    Hi Sanam,

    I have a strange issue, the cod option works well while I am logged in as the admin. It does not hide COD for restricted pin codes when i am not signed in.

    Could you suggest something please ? It is urgent.

    Please help. Thanks in advance.

    I’m having ssue with this plugin.. overall plugin is good.

    I ve include 2 pincodes in field also include the city and country and state..

    also added the cod msg .. but when I enter the included pincode city and country it display cod disable msg …

    Plugin Author aheadzen

    (@aheadzen)

    Hi there,

    Thanks for your co-operation. We have added correction in the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Postal/Pin Code include/exclude not working!’ is closed to new replies.