Questions tagged [custom-field]

The tag has no usage guidance.

78 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
2k views

Magento2: Adding custom fields on checkout are not associated with the form

I'm trying to add some custom fields on the checkout. I looked around the internet and always I found an example adding some information on shipping address. But what I want is a fieldset independent ...
4
votes
2answers
2k views

How to add datepicker field in Checkout?

I want to add a date picker field into the checkout page but I have no idea where to start. I have tried this Add date picker in checkout page but it's not working for me. We are having the below ...
4
votes
1answer
2k views

cannot get extension attributes value

The value can post However,I cannot get Extension attributes on my plugin which intercept Checkout success controller code. getExtensionAttributes always return null <?php namespace Genning\...
4
votes
1answer
2k views

Magento 2 : Issue with the custom field on checkout page

Installed Version of Magento is - 2.1.0 I have added a custom field "Bank Account Number" as you can see red square box in the below image. The problem I am facing is that it's not getting displayed ...
3
votes
1answer
617 views

How can I add State and Country attribute for customer in Admin, Magento2

I need to create State and Country attribute for customer registration and Admin. How can I Achieving State and Country field functionality in Admin under customer Account Information
3
votes
0answers
49 views

Magento 2 I have added the custom field in the product attributes field but that not get save value at edit time in product attributes form

I have add the custom text field at the stores->attributes>product in form field that save into database but when i return edit that attributes that value not set at the edit times. Here is the ...
2
votes
3answers
1k views

Magento 2 Add Custom fields to Bundle Product add options

want to do this I have followed similar (Magento 2 add new custom option text field) topic but it's about custom options for simple products. Somebody in commets say's that he achieved this for ...
2
votes
1answer
1k views

How to Modify Discount amount of cart price rule on cart page in magento 2

I would like to modify Discount Amount of cart price rule on the cart page. Actually Magento apply rule using class Magento\SalesRule\Model\RulesApplier and function is protected function ...
2
votes
1answer
313 views

Override category H1 with custom attribute - Magento 2

I would like to create a new field for category pages which I can use to override the default H1 on front-end. Currently if have a category called 'Stuff', my breadcrumb is 'Stuff' and my H1 is '...
2
votes
1answer
134 views

Save value of custom field in minicart to order Magento 2

I have added one field "Special instructions" (textarea) in mini cart which I want to get saved in order details when customer put the order. In which observer can I get the value of this field? and ...
2
votes
1answer
955 views

Magento 1.9 How to add custom field in checkout registration form

I have a question for my magento version 1.9.3.6, I create a module to add a custom field in Customer Registration Form and Checkout Registration Form. config.xml <?xml version="1.0"?> <...
2
votes
0answers
340 views

How to create dynamic rows field in custom Ui component form

I want to create field in custom ui form to add dynamic row and delete that row.. I know how to add dynamic row field in STORE > Configuration but I don't know how to add in UI component form. Then ...
2
votes
0answers
383 views

Magento 2.2: How to save data from custom field in sales_order_address table?

I added a custom field in checkout and want to save data in sales_order_address table. I successfully saved that data in quote, sales_order and sales_order_grid tables. Here is my UpgradeSchema.php ...
2
votes
0answers
232 views

Magento 2 How can i Change Sortorder in fornted order_view.xml in order_total

I want to change sorting order in order_total block in frontend order view page. can any one tell me how i can change sorting order.
2
votes
0answers
2k views

Magento 2:Get input field text value in js file from template file

I have a added a custom block in checkout section using a custom module.(http://i.prntscr.com/BRC2VcknSZiLsFpgzzPSAg.png) I want to get the input text field value in js file(from .html file). I have ...
2
votes
1answer
1k views

Custom checkout field doesn't save the value to quote

I created a custom attribute for quote and order like this: $quote = 'quote'; $orderTable = 'sales_order'; $setup->getConnection() ->addColumn( $setup->...
2
votes
1answer
696 views

custom field value not showing in shipping address in magento backend

I have added a custom filed mobile number in magento 1.9 both in checkout and customer registration everything working fine if a customer register i can see the value in customer account information ...
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-...
2
votes
1answer
510 views

add a custom field in customer account just visible in admin

I want to add a text box in the customer information This text box appears only in admin, just visible in admin area I would like information about each customer is stored in the TextBox Is there a ...
2
votes
0answers
845 views

Magento 2 : How to Add wysiwyg Editor in Frontend Custom Form

I wanted to create WYSIWYG editor in custom form frontend. What I tried doing is : Created WysiwygConfig.php file inside Vendor/Extension/Plugin directory with code : class WysiwygConfig { ...
2
votes
0answers
2k views

Magento 2 : Add Custom Field on Checkout

I need to add text field below shipping address checkout page and save content in sales_order table in database. I tried following http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_form....
2
votes
1answer
323 views

How to add new field in product attribute options in Magento 2

I want to add custom field for attribute options in Magento 2 how can I do?
1
vote
0answers
128 views

Magento2.3.5 Custom checkout field custom validation Amazon Error

I have a custom field and customScope added with LayoutProcessor which works fine! But I need to add custom validation stop submission if my custom doesn't meet the requirements : Is just trowing ...
1
vote
0answers
86 views

Magento 2 custom form in shipping address before-form not validating for registered customers

I have added a custom form in the shipping address before-form handle. This form is validating for a guest checkout process but not working for logged in customers who have already added address ...
1
vote
0answers
14 views

Magento 2 layoutprocessor checkout

Is it possible to show the custom field for guest users instead for all users. I gave created a custom field using layoutprocessor
1
vote
1answer
49 views

How to Remove Zipcode, State and Company from Magento 2.3

As per the title, you can realize that its a very old and repetitive question, but actually I could not find a solid answer !! I want your help (step by step) how to "remove/disable" the Zipcode &...
1
vote
0answers
105 views

Magento 2 WYSIWYG in repeater field

I am trying to make a (very simplified) page builder for just the homepage in Magento 2.3. I figured out how to build a repeating field from a serialized array, like this : <field ...
1
vote
0answers
335 views

Magento 2.3.2 Invalid entity_type specified: Magento\Quote\Api\Data\AddressInterface on checkout

I have created a custom select field on the checkout address form. a field is displayed fine but when clicking on next button getting error "Invalid entity_type specified: Magento\Quote\Api\Data\...
1
vote
0answers
521 views

Magento 2 data migration errors how to solve

We have installed migration tool in the Magento 2.3.1 EE (composer require magento/data-migration-tool:2.3.1 ) would like migrate M1 commerce edition (1.14.3.1) to Magento 2.3.1 EE. When we execute ...
1
vote
0answers
152 views

Add new column in Category Product Grid

I need to add additional information to the catalog_category_product table. This information is to be entered and saved in the category product grid, in a column similar to Position. Task I've ...
1
vote
0answers
31 views

How to save Custom Order attribute when inputting via cart?

I have created a custom order field using the below code: <?php require_once('app/Mage.php'); Mage::app()->setCurrentStore(Mage::getModel('core/store')- >load(Mage_Core_Model_App::...
1
vote
0answers
164 views

How to add new custom field in checkout/shipping page and save it in db in Magento2.2.5?

I want to add new custom field in checkout/shipping and want to save them in the following tables in Magento 2.2.5: sales_order sales_order_address sales_order_grid I have referred this link https://...
1
vote
1answer
710 views

Unable to create extension attribute for billing address in Magento 2

I have added custom field in magento checkout billing form, to get the value for field, I have added extension attribute <extension_attributes for="Magento\Quote\Api\Data\AddressInterface"> ...
1
vote
0answers
24 views

How to validate custom text field in magento checkout form

I have added custom checkout field in magento 2, and made it required, how can I add more validations and custom messages. Below is my code snippet to make it required: dataScope' => '...
1
vote
0answers
33 views

Admin form placeholder won't show

I dug up the "stack" and found one good example of how to add new attribute to the field but it won't work. $founderFieldset->addType('text', 'Amber_SupaSlid_Block_Adminhtml_Text'); $...
1
vote
0answers
136 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
451 views

Custom form field not showing validation message

I have created one custom form and implemented magento validation. Magento validation works for all fields but message of one field is not displaying. I have added datepicker in this field. Below is ...
1
vote
0answers
28 views

Create custom extra new field in Magento 1.9 admin panel

I'm trying to add one more one more field to upload aadhaar card image. I tried doing it by adding attribute but it didn't work, And also I tried to duplicate the below code in /app/code/local/...
1
vote
0answers
555 views

Magento 2 : How to get Additional Information in payment info for custom payment method?

I have created custom payment module. Under that module i have display three additional information field. How to get that additional data from frontend to backend?
1
vote
0answers
34 views

How to add custom field in order_sales table and used it?

i need to add new field in order_sale tables. I create a initialSchema and add field in database (office_id). But i don't use this filed in order create, no matter where it is created. Please tell ...
1
vote
0answers
199 views

Magento 1.9: Add custom text box on invoice page for partial capture

I have created a payment module with auth-capture option and its working properly in Magento 1.9. The requirement is to capture a portion of the amount without changing the quantity. For this I have ...
1
vote
2answers
3k views

How Do we can give dynamic data for a form field in admin form(ui-component) in magento 2

I need to add note to the form field using notice tag. for example <notice translate="true">Image size should be equal to some(here I need to pass dynamic value)</notice> form.xml &...
1
vote
0answers
213 views

Magento 2 Checkout address Add field with File type

I want to add a field with File input type in checkout page. Ex. A field for upload resume from checkout page which can be downloadable from admin side. Is there any options to add this kind of ...
1
vote
0answers
1k views

Magento 2 checkout input field validation possibility

I have searched in web two days how to validate checkout fields without any luck. All the research I have made have risen some questions because tutorials I have found are all about custom-form ...
1
vote
0answers
470 views

Magento : Add Orders Amount Column in Sales Tax report

I need to add new column in Reports > Sales > Tax. The column should render Total amount on which tax is implemented. I've created a renderer but don't know how to fetch values in it. There are two ...
0
votes
0answers
17 views

Magento 2: Get custom field value from checkout in observer

I have created a custom field on checkout before shipping method like this: etc/di.xml : <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
0
votes
1answer
18 views

Set expiration date for customer passwords

I want to create a new field in Stores -> Customers -> Customer Configuration -> Password Options for expiration in days for customer password.
0
votes
0answers
26 views

Add Cardholder Name to cc-form Custom Payment Method

Currently i have successfully implemented a custom payment method into Magento 2. However the cc-form build into Magento 2 does not include Cardholder Name or a similar field. As such I changed this ...
0
votes
0answers
23 views

Cannot create field in customer_form.xml with source model Magento\Eav\Model\Entity\Attribute\Source\Table

I'm trying to create additional tabs in adminhtml > customer > edit and have done so successfully. However, I'm trying to "move" a field from the "Account Information" tab to ...
0
votes
0answers
15 views

Magento 2 checkout custom field get carrier model

I have create custom field to checkout shipping address it working fine storing data in to database .I want get custom filed in fedex carrier model file How to show a custom attribute in the admin ...