aboutsummaryrefslogtreecommitdiff
path: root/public/product.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-21 16:18:05 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-21 16:18:05 +0200
commit1bb67296c43b662cf00882971fcb3df655d7302b (patch)
treef52723fab0afd4131a42ecdbd782e7dbfe5dc29b /public/product.php
parent569d61381723eea60188e00d6133fddcaee37ef8 (diff)
add/remove from cart working
Diffstat (limited to 'public/product.php')
-rw-r--r--public/product.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/product.php b/public/product.php
index 70c511d..18cc936 100644
--- a/public/product.php
+++ b/public/product.php
@@ -38,8 +38,9 @@ $product = $res->fetch_object();
<span class="price"><?php echo $product->price ?></span>
<p class="info"><?php echo $product->description ?></p>
<form action="/cart.php" method="post">
- <input type="number" value="<?php echo $product->id ?>" hidden name="product_id">
- <input type="submit" value="Toevoegen aan winkelwagen" class="button filled">
+ <input type="hidden" name="type" value="add">
+ <input type="hidden" name="product_id" value="<?php echo $product->id ?>">
+ <input type="submit" class="button filled" value="Toevoegen aan winkelwagen">
</form>
</div>
</div>