1 | <?php |
||
3 | class EcommerceCustomDeliveryEcommerceDBConfigExtension extends DataExtension |
||
|
|||
4 | { |
||
5 | private static $db = array( |
||
6 | 'DeliveryChargeTitle' => 'Varchar', |
||
7 | 'PriceWithoutApplicableProducts' => 'Currency', |
||
8 | 'PriceWithApplicableProducts' => 'Currency' |
||
9 | ); |
||
10 | |||
11 | private static $many_many = array( |
||
12 | 'DeliverySpecialChargedProducts' => 'Product', |
||
13 | 'SpecialPricePostalCodes' => 'EcommerceCustomDeliveryPostalCode' |
||
14 | ); |
||
15 | |||
16 | private static $field_labels = array( |
||
17 | 'PriceWithoutApplicableProducts' => 'Standard Delivery Charge (rest of NZ) without Special Products in Order', |
||
18 | 'PriceWithApplicableProducts' => 'Standard Delivery Charge (rest of NZ) with Special Products in Order', |
||
19 | 'DeliverySpecialChargedProducts' => 'List of Products with Special Delivery Charge', |
||
20 | 'SpecialPricePostalCodes' => 'List of Postal Codes With Special Delivery Charge' |
||
21 | ); |
||
22 | |||
23 | public function updateCMSFields(FieldList $fields) |
||
38 | } |
||
39 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.