if (response[0].Status === "Success" || response[0].status === "Success") { //url: 'https://api.postalpincode.in/pincode/' + pincode, url: 'https://maps.googleapis.com/maps/api/geocode/json?key=AIzaSyCisNOxevAIMzPXv7HY9sf4voU9LT1AKQM&address=' + pincode, console.log(response.results[0].address_components); if (response.status == "OK" && response.results && response.results.length > 0) { //var addComp = response.results[0].address_components; //var postOffice = response[0].PostOffice[0]; //var city = postOffice.District; //var city = addComp[1].long_name; //console.log() //console.log(city) //var stateFull = postOffice.State; //var stateFull = addComp[3].long_name; //var stateCode = stateMap[stateFull]; //var stateCode = addComp[3].short_name; const components = response.results[0].address_components; console.log(components); let city = ""; let state = ""; let stateCode = ""; for (const component of components) { if (component.types.includes("locality")) { city = component.long_name; } if (component.types.includes("administrative_area_level_1")) { state = component.long_name; stateCode = component.short_name; } } console.log(city); if (state && city != '') { $('#billing_city').val(city); $('#billing_city_mask').html(city); $('#billing_state').val(stateCode).trigger('change'); $('#billing_state_mask').html(state); } else { $.ajax({ url: 'https://api.postalpincode.in/pincode/' + pincode, method: 'GET', success: function(data) { console.log(data) if (data[0].Status === 'Success') { var postOffice = data[0].PostOffice[0]; city = postOffice.District; var stateFull = postOffice.State; state = postOffice.State; stateCode = stateMap[stateFull]; if (state && city) { $('#billing_city').val(city); $('#billing_city_mask').html(city); $('#billing_state').val(stateCode).trigger('change'); $('#billing_state_mask').html(state); } else { showPostcodeError("State code not found for the returned state."); } } else { alert('Invalid PIN code. Please enter a correct one.'); } } }); //showPostcodeError("State code not found for the returned state."); JerHigh Bacon Chicken Dog Treats - 70 g - Deccan Pet Store

JerHigh Bacon Chicken Dog Treats – 70 g

Original price was: ₹210.00.Current price is: ₹168.00.

JerHigh Bacon Dog Treat is made of real meat. It is carefully prepared to provide a pure, tasty and highly digestible snack. JerHigh Bacon is nutritious and beneficial for your dog’s well being.

 

Out of stock

0
    0
    Your Cart
    Your cart is emptyReturn to Shop
      Apply Coupon