3

I have a need for cart price rules in my custom module..anyone knows that how to add code in Form.php?

Look Like That.

enter image description here

  • This article can help you – Siarhey Uchukhlebau Dec 26 '16 at 11:26
  • in article mixed code. I need core code. like as just add in form.php lik as – Magento2 Devloper Dec 26 '16 at 11:40
  • $renderer = $this->rendererFieldset->setTemplate( 'Magento_CatalogRule::promo/fieldset.phtml' )->setNewChildUrl( $this->getUrl('vendor_rules/example_rule/newConditionHtml/form/rule_conditions_fieldset') ); $fieldset = $form->addFieldset( 'conditions_fieldset', [ 'legend' => __( 'Apply the rule only if the following conditions are met (leave blank for all products).' ) ] )->setRenderer( $renderer ); – Magento2 Devloper Dec 26 '16 at 11:41
  • but its not working.. – Magento2 Devloper Dec 26 '16 at 11:42
  • See this tutorial, I hope it will save your time youtube.com/… – vn miahome Dec 11 '18 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.