Jump to content

Why Override Are Not Working In 1.6.1.4


Recommended Posts

I have created override for /override/classes/order/order.php it works on 1.6.1.3 but for some reason its not working for 14 version. 

<?php
Class Order extends Ordercore
{
public static function generateReference()
{
    $last_id = Db::getInstance()->getValue('
        SELECT MAX(id_order)
        FROM '._DB_PREFIX_.'orders');
    return str_pad((int)$last_id + 1, 9, '000000000', STR_PAD_LEFT);
 
}
}

Whats wrong here ? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...