Daniel Patilea Posted December 11, 2013 Share Posted December 11, 2013 (edited) How can i make this field from backend: look like this: The code I use in product.php: <?php Class Product extends ProductCore { public $optional_extras; public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { self::$definition['fields']['optional_extras'] = array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml', 'size' => 3000); parent::__construct($id_product, $full, $id_lang, $id_shop, $context); } } The code I use in backend in informations.tpl: <tr> <td class="col-left"><label>{$bullet_common_field} {l s='Optional Extras'}</label></td> <td style="padding-bottom:5px;"> <textarea rows="4" cols="131" name="optional_extras" type="text" >{$product->optional_extras|escape:html:'UTF-8'}</textarea> </td> </tr> Edited December 11, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
Daniel Patilea Posted December 11, 2013 Author Share Posted December 11, 2013 Solved it by adding: class="autoload_rte" to that input Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 thank you so much for your solution you added it here: <textarea rows="4" cols="131" name="optional_extras" type="text" >{$product->optional_extras|escape:html:'UTF-8'}</textarea> ? topic marked as solved Link to comment Share on other sites More sharing options...
Recommended Posts