Questions tagged [addfield]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to add selected parameter in multiselect field method Magento 2

I need to get selected options after save data, i added field with Block file In Helper public static function getUserRoles(){ foreach(self::ROLES as $role=>$value) { $list[] = [ ...
0
votes
0answers
93 views

Add New Field As Phone Number which Will Take Country Code and Country Flag As Per Given Phone Number In Magento2.3.7

Vendor/Module/etc/frontend/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd&...
0
votes
2answers
30 views

Custom Admin Button OnClick Add more Group Of Fields to Section

I Created Custom IconSlider Module That Can Be controlled from Store-Configuration. Each slider Have the Same 3 Fields (Name,URL,Image). i added a few groups With that fields But every time i want to ...
0
votes
0answers
10 views

mamgento 2 addfield multiselect highlite selectd values

Hi created multiselect field in my custom module in that selected only two values database having basics[product_type_category] =>Basics,Compact when i click on edit particular id need to ...
1
vote
1answer
32 views

How to add AND OR AND conditions in a product collection?

ORIGINAL POST Comment ajouter des conditions ET OU ET dans une collection de produits? comment pourrais filtrer une collection de produit par: (attribut A : condition A And attribut A : condition B) ...
0
votes
1answer
23 views

How to fusion an AND et OR filter/condition in Magento?

how to fusion this instructions: $collection->addFieldToFilter('updated_at', ['from' => $from]) ->addFieldToFilter('updated_at', ['to' => $to]) or $collection->...
1
vote
0answers
47 views

How can I make admin form field ($form->addField()) use PageBuilder editor?

I'm using Amasty's Landing Pages extension. On the Landing Pages edit form there's a content field that uses the default WYSIWYG editor. I need to make this field use the PageBuilder editor instead. I ...
1
vote
1answer
479 views

Magento 2 addFieldToFilter check for NULL not working

What i am doing ->addFieldToFilter('value', array(['eq' => '', array('isnull' => true)])) What i want in the query - '((value = '' )is NULL)` Can anyone help me on this Thanks.
1
vote
1answer
673 views

Magento 2 : Add comment field in checkout page

I want to add the Delivery Comment field in the checkout page like this. How can I do that? Any help? Thank in advance.
2
votes
1answer
51 views

How to show saved values of custom fields when product edit

I have added some custom fields to my product edit page and it is working now. But I want to show the saved values in the edit. Now i am able to show the values in text fields. but i don't know how to ...
1
vote
1answer
704 views

Showing a custom field in reviews on the front end Magento 2

I have created various new fields in Magento 2.3.1 in the review_details table They are created and in my UpdateSchema and added to the table, $installer->getConnection()->addColumn( $...
1
vote
1answer
65 views

Add custom Form to Review and Payments page

There are many examples online about adding a custom form with custom fields to the shipping-step, but I would like to know how to add a custom form with fields to the billing-step page.
0
votes
1answer
140 views

How to add custom filed type in admin form in magento 2? time range picker

I want to create the custom time range picker type in Magento 2 admin form like below image
1
vote
0answers
133 views

Magento 2: How to add array of input fields in admin panel?

I wanna display an array of input fields in Cart Prices Rules page under Condition's tab like this: I have a similar example which does this in stores/configuration section but I wanna achieve this ...
1
vote
1answer
3k views

Custom Field in Product Edit form in magento2 admin

I am trying to add custom text field in product edit form in admin panel. I have used below code in etc/adminhtml/di.xml <virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\...
1
vote
2answers
2k views

How to set required field ''State/Province' of add new address in My Address Book, magento 2?

Using magento 2.2, I want to set required on field State/Province in Add New Address in 'my address book'.
1
vote
1answer
3k views

Magento 2 Adding field to Account information tab at admin panel

I have added new customer attribute 'Company' (not to customer_address) and I need to render this in customer_form ui-component at the "Account information" tab. It's already in customer collection ...
0
votes
2answers
1k views

Add value to hidden field Magento 2 admin

I am trying to add a hidden field with a value to my Magento 2 admin form. I used the following code: $fieldset->addField('order_id', 'hidden', ['name' => 'order_id', 'value' => 'Test']); ...
1
vote
1answer
27 views

How to recover error time to change field type in adminhtml form

Give the solution for this error... this error comes when I go to add new item or edit item in admin panel fieldset->addField('dateadded', 'date', array( 'label' => Mage::helper('...
0
votes
1answer
42 views

Getting Element with the id 'X' already exists on the cms pages from adminpanel in Magento 1

I am using this eventadminhtml_cms_page_edit_tab_content_prepare_form to add an extra field in the cms view page. This is the code from my observer: $model = Mage::registry('cms_page'); $...
2
votes
0answers
46 views

Magento 2 : I have add new field to cusotmer group but value not save

I have add new custom fields to customer group (adminhtml) but value not save. For add new field into customer group I have override below file: Block/Adminhtml/Group/Edit/Form.php $form = $this-...