Jump to content

[SOLVED] Add tinyMCE field


Recommended Posts

How can i make this field from backend:

ZUgyU8G.png

 

look like this:

ltuy415.png

 

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 by vekia (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...