If you want a customer to be able to purchase more than 99 quantities of a product on your store, you can paste the below code in the settings>advanced features>3rd party javascript code section.



<Script>

function addUpdateButton(_75,_76,_77,_78,_79){

var _7a=/^\s*[a-zA-Z0-9,\s]+\s*$/;

if(_79>99999){

alert("Sorry, you cannot add more quantity.");

}else{

if(isNaN(_79)){

alert("please enter a positive number");

$j("#update_quantity"+_75+_76).val(_78);

}else{

if(isNaN(_79)||_79.indexOf(".")>0){

alert("Quantity can not be a decimal number");

$j("#update_quantity"+_75+_76).val(_78);

}else{

if(_79<0||_79==0){

alert("You need to purchase a minimum of 1 piece.");

$j("#update_quantity"+_75+_76).val(_78);

}else{

if(_79>_77&&_77!=-1){

alert("Sorry, you cannot add more quantity");

$j("#update_quantity"+_75+_76).val(_78);

}else{

if(!_7a.test(_79)){

alert("Quantity can not be a decimal number");

$j("#update_quantity"+_75+_76).val(_78);

}else{

}

}

}

}

}

}

};

</script>


<script>


setInterval(function () {

jQuery("[id^=update_quantity]").attr('maxlength','6');

}, 500);


jQuery("#quantity").attr('maxlength','6');


jQuery("#max_available_quantity").attr('value','9999');


function addUpdateMaxQuanity(_266){

var _267=/^\s*[a-zA-Z0-9,\s]+\s*$/;

var _268=$j("#quantity").val();

if(_268>9999){

alert("Sorry, you cannot add more quantity.");

}else{

if(isNaN(_268)){

alert("please enter a positive number");

$j("#quantity").val(1);

}else{

if(isNaN(_268)||_268.indexOf(".")>0){

alert("Quantity can not be a decimal number");

$j("#quantity").val(1);

}else{

if(_268<0||_268==0){

alert("You need to purchase a minimum of 1 piece.");

$j("#quantity").val(1);

}else{

if(_268>_266&&_266!=-1){

alert("Sorry, you cannot add more quantity");

$j("#quantity").val(1);

}else{

if(!_267.test(_268)){

alert("Quantity can not be a decimal number");

$j("#quantity").val(1);

}else{

}

}

}

}

}

}

};

</script>