Jump to content

Edit History

Florian644

Florian644

Yes that's what I did but for OrderDetail, somebody helped me and told me that I should create a new field in OrderDetail to get the value in the Back Office orders.

class OrderDetail extends OrderDetailCore {

	public $svgTemplate;
 
    public function __construct($id = null) { 

        self::$definition['fields']['svgTemplate'] = [ 'type' => self::TYPE_HTML,
            'required' => false
        ];
        
        parent::__construct($id);
    }
}

 

Florian644

Florian644

class OrderDetail extends OrderDetailCore {

	public $svgTemplate;
 
    public function __construct($id = null) { 

        self::$definition['fields']['svgTemplate'] = [ 'type' => self::TYPE_HTML,
            'required' => false
        ];
        
        parent::__construct($id);
    }
}

Yes that's what I did but for OrderDetail, somebody helped me and told me that I should create a new field in OrderDetail to get the value in the Back Office orders.

class OrderDetail extends OrderDetailCore {

	public $svgTemplate;
 
    public function __construct($id = null) { 

        self::$definition['fields']['svgTemplate'] = [ 'type' => self::TYPE_HTML,
            'required' => false
        ];
        
        parent::__construct($id);
    }
}

 

Florian644

Florian644

5 minutes ago, 4you.software said:
class Order extends OrderCore

{

    public $svgTemplate;

    public function __construct($id_product = null){

        self::$definition['fields']['svgTemplate'] = array('type' => self::TYPE_HTML);

        parent::__construct();

    }

}

 

Yes that's what I did but for OrderDetail, somebody helped me and told me that I should create a new field in OrderDetail to get the value in the Back Office orders.

Florian644

Florian644

5 minutes ago, 4you.software said:
class Order extends OrderCore

{

    public $svgTemplate;

    public function __construct($id_product = null){

        self::$definition['fields']['svgTemplate'] = array('type' => self::TYPE_HTML);

        parent::__construct();

    }

}

 

Yes that's what I did but for OrderDetail, somebody helped me and told me that (wait I'm editing)

Florian644

Florian644

4 minutes ago, 4you.software said:
class Order extends OrderCore

{

    public $svgTemplate;

    public function __construct($id_product = null){

        self::$definition['fields']['svgTemplate'] = array('type' => self::TYPE_HTML);

        parent::__construct();

    }

}

 

Yes that's what I did but for OrderDetail, somebody helped me and told me that wait I'm editing

Florian644

Florian644

4 minutes ago, 4you.software said:
class Order extends OrderCore

{

    public $svgTemplate;

    public function __construct($id_product = null){

        self::$definition['fields']['svgTemplate'] = array('type' => self::TYPE_HTML);

        parent::__construct();

    }

}

 

Yes that's what I did but for OrderDetail, somebody helped me and told me that 

×
×
  • Create New...