1 | <?php |
||
3 | class ElectronicDownloadProduct extends Product |
||
|
|||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Standard SS variable. |
||
8 | */ |
||
9 | private static $many_many = array( |
||
10 | 'DownloadFiles' => 'File' |
||
11 | ); |
||
12 | |||
13 | /** |
||
14 | * Standard SS variable. |
||
15 | */ |
||
16 | private static $icon = 'ecommerce_delivery_electronic/images/icons/ElectronicDownloadProduct'; |
||
17 | |||
18 | /** |
||
19 | * Standard SS variable. |
||
20 | * @var String |
||
21 | */ |
||
22 | private static $description = "A product can be downloaded."; |
||
23 | |||
24 | /** |
||
25 | * Standard SS variable. |
||
26 | */ |
||
27 | private static $singular_name = "Electronic Download Product"; |
||
28 | public function i18n_singular_name() |
||
32 | |||
33 | /** |
||
34 | * Standard SS variable. |
||
35 | */ |
||
36 | private static $plural_name = "Electronic Download Products"; |
||
37 | public function i18n_plural_name() |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Standard SS Method |
||
45 | */ |
||
46 | public function getCMSFields() |
||
52 | |||
53 | /** |
||
54 | * This is used when you add a product to your cart |
||
55 | * if you set it to 1 then you can add 0.1 product to cart. |
||
56 | * If you set it to -1 then you can add 10, 20, 30, etc.. products to cart. |
||
57 | * |
||
58 | * @return Int |
||
59 | **/ |
||
60 | public function QuantityDecimals() |
||
64 | } |
||
65 | |||
70 |
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.