Mosquito Repellent
Product Added To Cart Successfully
-
Rs10.00
Rs9.80
-
Rs78.00
Rs75.00
-
Rs81.00
Rs78.00
-
Rs94.00
Rs90.00
-
Rs10.00
Rs9.70
-
Rs70.00
Rs67.90
-
Rs345.00
Rs334.65
-
Rs69.00
Rs66.93
-
Rs99.00
Rs96.03
-
Rs75.00
Rs72.75
-
Rs26.00
Rs25.22
-
-
Rs165.00
Rs160.05
-
Rs72.00
Rs69.84
-
Rs78.00
Rs75.66
-
Rs29.00
Rs28.13
-
Rs85.00
Rs83.00
function kirana(id){
// alert('test');
var ajx_form_submit = function(button, url) {
if (this.validator.validate()) {
var form = this.form;
var oldUrl = form.action;
if (url) {
form.action = url;
}
var e = null;
try {
this.form.submit();
} catch (e) {
}
this.form.action = oldUrl;
if (e) {
throw e;
}
if (button && button != 'undefined') {
button.disabled = true;
}
}
};
var ajx_form_submitLight = function(button, url){
if(this.validator) {
var nv = Validation.methods;
delete Validation.methods['required-entry'];
delete Validation.methods['validate-one-required'];
delete Validation.methods['validate-one-required-by-name'];
// Remove custom datetime validators
for (var methodName in Validation.methods) {
if (methodName.match(/^validate-datetime-.*/i)) {
delete Validation.methods[methodName];
}
}
if (this.validator.validate()) {
if (url) {
this.form.action = url;
}
this.form.submit();
}
Object.extend(Validation.methods, nv);
}
};
productAddToCartForm = new VarienForm(id);
productAddToCartForm.submit = ajx_form_submit.bind(productAddToCartForm);
productAddToCartForm.submitLight = ajx_form_submitLight.bind(productAddToCartForm);
ajaxaddtocart.ajaxCartSubmit(productAddToCartForm);
$$('.product_addtocart_form input.qty').each(function(el) {
el.observe('blur', function(e){
if( el.value <= 0 || isNaN(el.value) === true) {
el.value = 1;
}
});
});
}