Subversion Repositories SmartDukaan

Rev

Rev 11638 | Rev 11717 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11638 Rev 11708
Line 269... Line 269...
269
    if ( typeof _gaq != "undefined" && _gaq != null) {
269
    if ( typeof _gaq != "undefined" && _gaq != null) {
270
      _gaq.push(["_trackEvent", "Cart", "Location not serviceable", pincode]);
270
      _gaq.push(["_trackEvent", "Cart", "Location not serviceable", pincode]);
271
    }
271
    }
272
    document.getElementById("error").style.display = "block";
272
    document.getElementById("error").style.display = "block";
273
    if (itemsNotServicable == items.length) {
273
    if (itemsNotServicable == items.length) {
274
      document.getElementById("error").innerHTML = "Location not servicable. Please try a diferent pincode";
274
      document.getElementById("error").innerHTML = "Location not serviceable. Please try a different pincode";
275
    } else {
275
    } else {
276
      if (itemsNotServicable != items.length) {
276
      if (itemsNotServicable != items.length) {
277
        document.getElementById("error").innerHTML = "Location not servicable for one of the products. Please try a diferent pincode or try removing the product";
277
        document.getElementById("error").innerHTML = "Location not serviceable for one of the products. Please try a different pincode or try removing the product";
278
      }
278
      }
279
    }
279
    }
280
    window.scrollTo(0, 0);
280
    window.scrollTo(0, 0);
281
    return false;
281
    return false;
282
  }
282
  }
Line 285... Line 285...
285
    if ( typeof _gaq != "undefined" && _gaq != null) {
285
    if ( typeof _gaq != "undefined" && _gaq != null) {
286
      _gaq.push(["_trackEvent", "Cart", "Location not serviceable", pincode]);
286
      _gaq.push(["_trackEvent", "Cart", "Location not serviceable", pincode]);
287
    }
287
    }
288
    document.getElementById("error").style.display = "block";
288
    document.getElementById("error").style.display = "block";
289
    if (notServiceableLocation == items.length) {
289
    if (notServiceableLocation == items.length) {
290
      document.getElementById("error").innerHTML = "Location not servicable. Please try a diferent pincode";
290
      document.getElementById("error").innerHTML = "Location not serviceable. Please try a different pincode";
291
    } else {
291
    } else {
292
      if (notServiceableLocation != items.length) {
292
      if (notServiceableLocation != items.length) {
293
        document.getElementById("error").innerHTML = "Location not servicable for one of the products. Please try a diferent pincode or try removing the product";
293
        document.getElementById("error").innerHTML = "Location not serviceable for one of the products. Please try a different pincode or try removing the product";
294
      }
294
      }
295
    }
295
    }
296
    window.scrollTo(0, 0);
296
    window.scrollTo(0, 0);
297
    return false;
297
    return false;
298
  }
298
  }
Line 367... Line 367...
367
  }
367
  }
368
}
368
}
369
 
369
 
370
function shomoreredirect() {
370
function shomoreredirect() {
371
  window.location.href = base_url;
371
  window.location.href = base_url;
372
}
-
 
373
372
}
-
 
373