Jump to content

OrderCore override not applied


Ractor

Recommended Posts

I tried to create override for classOrderCore, located in /classes/order/Order.php. The result I put in /override/classes/order/Order.php with following content:

class Order extends OrderCore {
    /**
     * Generates reference number.
     *
     * Overriten to have reference numbers numeric only.
     */
    public static function generateReference()
    {
    return strtoupper(Tools::passwdGen(9, 'NUMERIC'));
    }
}

After doing this nothing happened. Additionally I tried following (with the same unsuccesful result):

  • Delete cache using backoffice
  • Delete manually cache/cache_index.php
  • Disable overrides, delete cache in the BO and cache/cache_index.php and enable overrides afterwards

Can you tell me, where could be the catch? I'm using Prestashop v. 1.6.1.18.

Thanks

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...