Browse code

Progress

Benjamin Roth authored on21/02/2023 19:42:19
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+<?php
2
+
3
+/**
4
+ * Custom extension for Isotope for Contao
5
+ *
6
+ * Copyright (c) 2014 Benjamin Roth [http://www.esales-media.de]
7
+ *
8
+ * @package eSM_isotope_custom
9
+ * @link    http://www.esales-media.de
10
+ * @license commercial
11
+ */
12
+
13
+namespace App\Hooks;
14
+
15
+use Contao\Controller;
16
+
17
+
18
+class IsotopeHooks extends Controller
19
+{
20
+    public function addProductToCollection($objProduct, $intQuantity, $ProductCollection)
21
+    {
22
+        if ($objProduct->not_buyable)
23
+        {
24
+          return 0;
25
+        }
26
+        return $intQuantity;
27
+    }
28
+
29
+}