Jump to content

Error in override folder


Recommended Posts

Hi,

 

I am newbie to Prestashop and mi site is giving this error ::

 

PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_FUNCTION in public_html/override/classes/order/OrderPayment.php

 

the content of the above OrderPayment.php is as follows ::

 

class OrderPayment extends OrderPaymentCore
{
     /**
     * @see ObjectModel::$definition
     */
        'table' => 'order_payment',
        'primary' => 'id_order_payment',
        'fields' => array(
            'order_reference' =>     array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 100),
            'id_currency' =>         array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
            'amount' =>             array('type' => self::TYPE_FLOAT, 'validate' => 'isNegativePrice', 'required' => true),
            'payment_method' =>     array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'),
            'card_holder' =>         array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254),
            'date_add' =>             array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
        ),
    );
}

 

I can clearly understand the error in the code but not sure about whether I should delete the class or do anything else.

 

Kindly help.

 

Thanks and regards

Link to comment
Share on other sites

×
×
  • Create New...