View Single Post
  #21  
Old 01-17-2017, 08:43 AM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 263
 

Default Re: New Field in product page

I've followed the article and added a new field (I'm replacing the standard x-cart tab with an custom html one).

Code:
class Info extends \XLite\View\FormModel\Product\Info implements \XLite\Base\IDecorator { /** * @return array */ protected function defineFields() { $schema = parent::defineFields(); $schema[self::SECTION_DEFAULT]['specification'] = [ 'label' => static::t('Specification'), 'position' => 600, 'type' => 'XLite\View\FormModel\Type\TextareaAdvancedType', ]; return $schema; } }

It all works but when I enter HTML all the tags are stripped out. Is there something else I should be defining somewhere?
__________________
Core version: 5.5.xx
Reply With Quote