Cart.php run Quantity updates with Javascript instead of waiting for Update Button pressed
We had an incident where the client said he had changed quantities when adding to cart (in the cart.php page). However, he probably didn't press the 'Update' button so he ended up ordering one of each.
I would like to get rid of the Update button and just have the function below just execute with Javascript onKeyUp: Your help is appreciated. I have attached the cart.php file in case that helps. Thank you.
<?php
// WA eCart Update
if (isset($_POST["eCart1_Update_100"]) || isset($_POST["eCart1_Update_100_x"])) {
$eCart1->CartUpdate();
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
$eCart1->redirStr = $Redirect_redirStr;
}
$eCart1->cartAction = "Update";
}
?>