aboutsummaryrefslogtreecommitdiff
path: root/public/products.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-06-01 16:02:10 +0200
committerlonkaars <loek@pipeframe.xyz>2023-06-01 16:02:10 +0200
commit879c72e50c172f6e20416dcf06fccdbb59525c7a (patch)
treed6cb693daa85b724eb3d07d8fae807b609cfd5c5 /public/products.php
parent8af23ff155904ba78de61a3cdab33a048a0f5664 (diff)
order from product catalogue and modify cart product count
Diffstat (limited to 'public/products.php')
-rw-r--r--public/products.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/products.php b/public/products.php
index ce0ada5..326d9fb 100644
--- a/public/products.php
+++ b/public/products.php
@@ -9,6 +9,11 @@ function product_template($product) {
<img src="$image_path" alt="">
<span class="price">$product->price</span>
<span class="name">$product->name</span>
+ <form action="/cart.php" method="post">
+ <input type="hidden" name="type" value="add">
+ <input type="hidden" name="product_id" value="$product->id">
+ <input type="submit" class="button filled" value="Toevoegen aan winkelwagen">
+ </form>
</a>
EOF;
}
@@ -69,7 +74,7 @@ EOF;
<?php do {
if (($user_privileges & PRIVILEGE_ADMIN) == 0) break;
echo <<<"EOF"
- <div class="center">
+ <div class="center skipafter">
<form action="/admin-product.php" method="get" class="d-ib">
<input type="submit" value="Nieuw product toevoegen" class="button filled">
</form>