Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function updateCMSFields(FieldList $fields) |
||
26 | { |
||
27 | $fields->removeByName("ShowCartPostageForm"); |
||
28 | $fields->removeByName("ShowCartDiscountForm"); |
||
29 | $fields->removeByName("LastEstimateClean"); |
||
30 | |||
31 | $fields->addFieldToTab( |
||
32 | "Root.Shop", |
||
33 | ToggleCompositeField::create( |
||
34 | 'ShoppingCartSettings', |
||
35 | _t("ShoppingCart.ShoppingCart", "Shopping Cart Settings"), |
||
36 | [ |
||
37 | CheckboxField::create( |
||
38 | "ShowCartPostageForm", |
||
39 | $this->owner->fieldLabel("ShowCartPostageForm") |
||
40 | ), |
||
41 | CheckboxField::create( |
||
42 | "ShowCartDiscountForm", |
||
43 | $this->owner->fieldLabel("ShowCartDiscountForm") |
||
44 | ) |
||
50 |