From 2197faf27421f3df01d7ae6618ddf12873dca3bb Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 1 Jun 2023 18:20:05 +0200 Subject: admin-promo done --- lib/promo.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/promo.php (limited to 'lib') diff --git a/lib/promo.php b/lib/promo.php new file mode 100644 index 0000000..ae200fa --- /dev/null +++ b/lib/promo.php @@ -0,0 +1,13 @@ + 0; $i--) + if (abs((($i/$count_buff)-$price_buff)/$price_buff) < 0.001) + return $i."+".($count_buff - $i)." gratis"; + } + return ((1-$price_buff)*100)."% korting per ".$count_buff."-pack"; +} + +?> -- cgit v1.2.3