Browse code

Update

Benjamin Roth authored on20/03/2023 16:19:16
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+/**
4
+ * Tweaks for Contao
5
+ *
6
+ * Copyright (c) 2016 Benjamin Roth [http://www.esales-media.de]
7
+ *
8
+ * @package eSM_tweaks
9
+ * @link    http://www.esales-media.de
10
+ * @license commercial
11
+ */
12
+
13
+
14
+$GLOBALS['TL_DCA']['tl_iso_rule']['fields']['type']['options'][] = 'affentaler';
15
+$GLOBALS['TL_DCA']['tl_iso_rule']['fields']['type']['options'][] = 'special';
16
+$GLOBALS['TL_DCA']['tl_iso_rule']['palettes']['affentaler'] = '{basic_legend},type,name,discount,rounding;{limit_legend:hide},limitPerMember,limitPerConfig,minItemQuantity,maxItemQuantity,quantityMode;{datim_legend:hide},startDate,endDate,startTime,endTime;{advanced_legend:hide},configRestrictions,memberRestrictions,productRestrictions;{enabled_legend},enabled';
17
+$GLOBALS['TL_DCA']['tl_iso_rule']['palettes']['special'] = '{basic_legend},type,applyTo,name,label,discount,rounding;{coupon_legend:hide},enableCode;{limit_legend:hide},limitPerMember,limitPerConfig,minSubtotal,maxSubtotal,minWeight,maxWeight,minItemQuantity,maxItemQuantity,quantityMode;{datim_legend:hide},startDate,endDate,startTime,endTime;{advanced_legend:hide},configRestrictions,memberRestrictions,productRestrictions;{enabled_legend},enabled';
18
+
19
+
20
+$GLOBALS['TL_DCA']['tl_iso_rule']['fields']['label']['sql'] = "varchar(1055) NOT NULL default ''";
21
+$GLOBALS['TL_DCA']['tl_iso_rule']['fields']['label']['eval']['maxlength'] = 1055;
0 22
\ No newline at end of file