Categories
CMS Magento Mastering Development

How to create functional of selecting products on admin category page

I’m trying to create selecting products on category page, I make: ui_component (category_form.xml) <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <fieldset name=”select_products” sortOrder=”40″> <settings> <collapsible>true</collapsible> <label translate=”true”>Select Products</label> </settings> <container name=”select_products_container” sortOrder=”160″> <htmlContent name=”html_content”> <block name=”gallery” class=”Vendor\Module\Block\Adminhtml\Category\AddProducts”/> </htmlContent> </container> </fieldset> </form> AddProduct class: class AddProducts extends \Magento\Backend\Block\Template { /** * Block template * * @var string */ protected $_template […]

Categories
CMS Magento Mastering Development

Product grid checkbox input at sales rule form Magento 2 not working

I’m using Magento 2.3.4 and want to add product grid with checkbox as an input for sales rule form (shopping cart price rule), i follow the instruction to add product grid input from here but when I print the $_POST value the input data does not exist. Here’s my code: app/code/Becom/Freegift/Block/Adminhtml/Products/Edit/Tab/Product.php namespace Becom\Freegift\Block\Adminhtml\Products\Edit\Tab; use Magento\Backend\Block\Widget\Grid; […]

Categories
CMS Magento Mastering Development

Magento 2.3 order comment block not rendering properly

I am working on Marketplace extension they are not providing order comment block. that’s why I am going to customize this. Right now, Comment history block appearing properly. also, comment has been added to the order with notified mail. after submitting a comment, the block should be rendered with the latest comment but in my […]

Categories
CMS Magento Mastering Development

How to add form field In grid form

Hi i am trying to add field to form that opens on a button click Here is a refrence image AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** * @var \Magento\Store\Model\System\Store */ protected $_systemStore; /** * @param \Magento\Backend\Block\Template\Context $context * @param \Magento\Framework\Registry $registry * @param \Magento\Framework\Data\FormFactory $formFactory * @param \Magento\Store\Model\System\Store $systemStore […]

Categories
CMS Magento Mastering Development

How to add form field In grid form

Hi i am trying to add field to form that opens on a button click Here is a refrence image AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** * @var \Magento\Store\Model\System\Store */ protected $_systemStore; /** * @param \Magento\Backend\Block\Template\Context $context * @param \Magento\Framework\Registry $registry * @param \Magento\Framework\Data\FormFactory $formFactory * @param \Magento\Store\Model\System\Store $systemStore […]

Categories
CMS Magento Mastering Development

How to add form field In grid form

Hi i am trying to add field to form that opens on a button click Here is a refrence image AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** * @var \Magento\Store\Model\System\Store */ protected $_systemStore; /** * @param \Magento\Backend\Block\Template\Context $context * @param \Magento\Framework\Registry $registry * @param \Magento\Framework\Data\FormFactory $formFactory * @param \Magento\Store\Model\System\Store $systemStore […]

Categories
CMS Magento Mastering Development

Magento 2 admin Grid form Status

Hi am new in magento and am learning module development am trying to add a status drop down button that is yes or no in mt button click form in admin grid but but my admin grid disappear. am sharing the codes below:- AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** […]

Categories
CMS Magento Mastering Development

Magento 2 admin Grid form Status

Hi am new in magento and am learning module development am trying to add a status drop down button that is yes or no in mt button click form in admin grid but but my admin grid disappear. am sharing the codes below:- AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** […]

Categories
CMS Magento Mastering Development

Magento 2 admin Grid form Status

Hi am new in magento and am learning module development am trying to add a status drop down button that is yes or no in mt button click form in admin grid but but my admin grid disappear. am sharing the codes below:- AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** […]

Categories
CMS Magento Mastering Development

Magento 2 admin Grid form Status

Hi am new in magento and am learning module development am trying to add a status drop down button that is yes or no in mt button click form in admin grid but but my admin grid disappear. am sharing the codes below:- AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** […]