Undefined error for Check pincode
-
Hi,
There seems to be some API update from your side due to which this plugins code is not working properly.
In shiprocket-woocommerce-shipping-calculator.php, line 272var recommeded_courier_id = response.data.recommended_courier_company_id;
is givingundefined
due to which the condition in line 275if(recommeded_courier_id !== null && recommeded_courier_id !== '')
turns out to be true and because of this in line 277,var etd = recommeded_courier[0].etd;
errors out.
The fix would be to make the line 275 condtion to inclue check for undefined like thisif(recommeded_courier_id !== null && recommeded_courier_id !== undefined && recommeded_courier_id !== '')
Also, spelling mistake in recommeded_courier_id.
Please do a fix and update the plugin.
Thanks
- The topic ‘Undefined error for Check pincode’ is closed to new replies.