cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a custom LayoutProcessor

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

How to add a custom LayoutProcessor

Hello,

 

For shipping address form I need to add a custom layout processor in order to manage a new field to customer_address_entity table.

 

When I see the Onepage block, I see this:

 

/**
* @return string
*/
public function getJsLayout()
{
foreach ($this->layoutProcessors as $processor) {
$this->jsLayout = $processor->process($this->jsLayout);
}
return \Zend_Json::encode($this->jsLayout);
}

 

I need to add my own LayoutProcessor there.

 

How to do so?

 

Regards

Jaime