1 | <?php |
||
4 | class ProductVariation_OrderItem extends Product_OrderItem |
||
|
|||
5 | { |
||
6 | |||
7 | // ProductVariation Access Function |
||
8 | public function ProductVariation($current = false) |
||
12 | |||
13 | /** |
||
14 | * @decription: we return the product name here - |
||
15 | * leaving the Table Sub Title for the name of the variation |
||
16 | * |
||
17 | * @return String - title in cart. |
||
18 | */ |
||
19 | public function TableTitle() |
||
38 | |||
39 | /** |
||
40 | * we return the product variation name here |
||
41 | * the Table Title will return the name of the Product. |
||
42 | * @return String - sub title in cart. |
||
43 | **/ |
||
44 | public function TableSubTitle() |
||
62 | |||
63 | |||
64 | /** |
||
65 | * Check if this variation is new - that is, if it has yet to have been written |
||
66 | * to the database. |
||
67 | * |
||
68 | * @return boolean True if this is new. |
||
69 | */ |
||
70 | public function isNew() |
||
86 | } |
||
87 |
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.