Skip to content
Snippets Groups Projects
Commit f8235a65 authored by Ignacio Hernández de la Fuente's avatar Ignacio Hernández de la Fuente
Browse files

fix

parent 002c33bd
No related branches found
No related tags found
No related merge requests found
...@@ -329,7 +329,6 @@ echo "Hello Mr./Ms. ".explode('@',$_SESSION["username"])[0].", you were last onl ...@@ -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 $articles[$i]["description"]; ?></p>
<p><?php echo "Price: ".$articles[$i]["price"]." € <br>Quantity available: ".$articles[$i]["quantity"];?></p> <p><?php echo "Price: ".$articles[$i]["price"]." € <br>Quantity available: ".$articles[$i]["quantity"];?></p>
<div class="quantity"> <div class="quantity">
<button class="remove-button" onclick="removeProduct(this)">X</button>
<button onclick="decrementQuantity(this)">-</button> <button onclick="decrementQuantity(this)">-</button>
<input type="text" value="1" <?php echo 'id="quantity"'.$i; ?>> <input type="text" value="1" <?php echo 'id="quantity"'.$i; ?>>
<button onclick="incrementQuantity(this)">+</button> <button onclick="incrementQuantity(this)">+</button>
...@@ -337,12 +336,7 @@ echo "Hello Mr./Ms. ".explode('@',$_SESSION["username"])[0].", you were last onl ...@@ -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.'"';?>> <button class="btn btn-primary btn-xl text-uppercase" type="button" <?php echo 'id = "buttonShoppingCart'.$i.'"';?>>
Add to shopping cart Add to shopping cart
</button> </button>
<div class="quantity">
<button onclick="decrementQuantity(this)">-</button>
<input type="text" value="1" id="quantity1" readonly>
<button onclick="incrementQuantity(this)">+</button>
</div>
<script> <script>
function incrementQuantity(button) { function incrementQuantity(button) {
var input = button.parentNode.querySelector('input'); var input = button.parentNode.querySelector('input');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment