Skip to content

Instantly share code, notes, and snippets.

@mrtuvn
Created April 18, 2017 16:40
Show Gist options
  • Save mrtuvn/2898a0caf67dc590f637489e3621605b to your computer and use it in GitHub Desktop.
Save mrtuvn/2898a0caf67dc590f637489e3621605b to your computer and use it in GitHub Desktop.
$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