Created
April 18, 2017 16:40
-
-
Save mrtuvn/2898a0caf67dc590f637489e3621605b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fieldset = $form->addFieldset( | |
'conditions_fieldset', | |
[ | |
'comment' => __( | |
'Please specify products where the block should be displayed. ' | |
. 'Leave blank to display the block on all product pages.' | |
) | |
] | |
)->setRenderer( | |
$this->rendererFieldsetFactory->create() | |
->setTemplate('Magento_CatalogRule::promo/fieldset.phtml') | |
->setNewChildUrl( | |
$this->getUrl( | |
'*/*/newConditionHtml', | |
[ | |
'form' => $form->getHtmlIdPrefix() . 'conditions_fieldset', | |
'prefix' => 'rbslider', | |
'rule' => base64_encode(Product::class), | |
'form_namespace' => self::FORM_NAME | |
] | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment