Jump to content

Customer Service / Order Messages message 1200 chars limit

Michał Urban

Recommended Posts


I'm trying to add order message longer than 1200 characters, I'm getting this error:

Your entry in field message (language Polski (Polish)) exceeds max length 1200 chars (incl. HTML tags).

Is there a way to get rid of this limit? Or if not, could you propose another solution/module (we need longer order messages).

Link to comment
Share on other sites

In classes/order/OrderMessage.php there is:

     * @see ObjectModel::$definition
    public static $definition = [
        'table' => 'order_message',
        'primary' => 'id_order_message',
        'multilang' => true,
        'fields' => [
            'date_add' => ['type' => self::TYPE_DATE, 'validate' => 'isDate'],

            /* Lang fields */
            'name' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 128],
            'message' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isMessage', 'required' => true, 'size' => 1200],

as you can see there you can change 1200 to other value, best way is do this by override it.

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