Relatively new to PHP coding and using Prestashop v1.6.0.14 I have edited some files to add multiple values to a single feature.
When accessing the features tab in the product view, i have the following error
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_FUNCTION in public_html/testshop/override/classes/FeatureValue.php on line 6
The code is as follows
<?php
class FeatureValue extends FeatureValueCore
{
'table' => 'feature_value',
'primary' => 'id_feature_value',
'multilang' => true,
'fields' => array(
'id_feature' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'position' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
'custom' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
'value' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 255),
),
);
}
Thanks in advance, having a nightmare with this