From f8235a659abcd210a7ef2d048ad83246af0cd5d9 Mon Sep 17 00:00:00 2001 From: heighn23 <Ignacio.Hernandez_de_la_fuente@Student.Reutlingen-University.DE> Date: Thu, 11 Jan 2024 17:09:31 +0100 Subject: [PATCH] fix --- startbootstrap-agency-gh-pages/index.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/startbootstrap-agency-gh-pages/index.php b/startbootstrap-agency-gh-pages/index.php index 82db465..d115393 100644 --- a/startbootstrap-agency-gh-pages/index.php +++ b/startbootstrap-agency-gh-pages/index.php @@ -329,7 +329,6 @@ echo "Hello Mr./Ms. ".explode('@',$_SESSION["username"])[0].", you were last onl <p><?php echo $articles[$i]["description"]; ?></p> <p><?php echo "Price: ".$articles[$i]["price"]." € <br>Quantity available: ".$articles[$i]["quantity"];?></p> <div class="quantity"> - <button class="remove-button" onclick="removeProduct(this)">X</button> <button onclick="decrementQuantity(this)">-</button> <input type="text" value="1" <?php echo 'id="quantity"'.$i; ?>> <button onclick="incrementQuantity(this)">+</button> @@ -337,12 +336,7 @@ echo "Hello Mr./Ms. ".explode('@',$_SESSION["username"])[0].", you were last onl <button class="btn btn-primary btn-xl text-uppercase" type="button" <?php echo 'id = "buttonShoppingCart'.$i.'"';?>> Add to shopping cart </button> - <div class="quantity"> - - <button onclick="decrementQuantity(this)">-</button> - <input type="text" value="1" id="quantity1" readonly> - <button onclick="incrementQuantity(this)">+</button> - </div> + <script> function incrementQuantity(button) { var input = button.parentNode.querySelector('input'); -- GitLab