Add custom fields in Magento 2 pluginHow to add custom checkout fields and save them in db?main.CRITICAL:...
Does a phylactery of a lich have to be a box?
What is a good reason for every spaceship to carry a weapon on board?
Is boss over stepping boundary/micromanaging?
What is the most fuel efficient way out of the Solar System?
Can a hotel cancel a confirmed reservation?
Story about a person invited to join council of intellects
What is the purpose of easy combat scenarios that don't need resource expenditure?
Why was Lupin comfortable with saying Voldemort's name?
Do authors have to be politically correct in article-writing?
Why would space fleets be aligned?
Odd 74HCT1G125 behaviour
How old is the day of 24 equal hours?
Consequences of lack of rigour
Pythonのiterable
How do you funnel food off a cutting board?
Positioning node within rectangle Tikz
Why did Luke use his left hand to shoot?
Can I make estimated tax payments instead of withholding from my paycheck?
Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?
Use two 8s and two 3s to make the number 24
Should I reinstall Linux when changing the laptop's CPU?
Quickly creating a sparse array
Can I write a book of my D&D game?
How much mayhem could I cause as a sentient fish?
Add custom fields in Magento 2 plugin
How to add custom checkout fields and save them in db?main.CRITICAL: Plugin class doesn't existMagento2 add custom jquery pluginMagento 2.1: Not add table into databaseHow to add jQuery Chosen plugin to Magento 2 checkout fieldsMagento 2 Add new field to Magento_User admin formHow to Add Custom fields to Checkout page in Magento2I have created an extension to show Customer Company Name in Order grid. But when creating new order, order is not showing in order gridCan't save checkout custom fields in databaseCustom Checkout Fields
I'm updating a plugin and I need to add two fields.
I'd like to add them in checkout but also in user registration form.
I'm new to Magento, and I'm trying to do my best.
I found a guide here: https://oyenetwork.com/articles/magento2-devliery-date-module-creation-from-scratch/
So I begin to add the new columns to my database,
in this way:
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
$installer = $setup;
$setup->startSetup();
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_grid'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$setup->endSetup();
}
At the moment I'm not able to show my new fields in checkout.
Thanks
David
magento2 checkout
add a comment |
I'm updating a plugin and I need to add two fields.
I'd like to add them in checkout but also in user registration form.
I'm new to Magento, and I'm trying to do my best.
I found a guide here: https://oyenetwork.com/articles/magento2-devliery-date-module-creation-from-scratch/
So I begin to add the new columns to my database,
in this way:
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
$installer = $setup;
$setup->startSetup();
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_grid'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$setup->endSetup();
}
At the moment I'm not able to show my new fields in checkout.
Thanks
David
magento2 checkout
add a comment |
I'm updating a plugin and I need to add two fields.
I'd like to add them in checkout but also in user registration form.
I'm new to Magento, and I'm trying to do my best.
I found a guide here: https://oyenetwork.com/articles/magento2-devliery-date-module-creation-from-scratch/
So I begin to add the new columns to my database,
in this way:
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
$installer = $setup;
$setup->startSetup();
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_grid'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$setup->endSetup();
}
At the moment I'm not able to show my new fields in checkout.
Thanks
David
magento2 checkout
I'm updating a plugin and I need to add two fields.
I'd like to add them in checkout but also in user registration form.
I'm new to Magento, and I'm trying to do my best.
I found a guide here: https://oyenetwork.com/articles/magento2-devliery-date-module-creation-from-scratch/
So I begin to add the new columns to my database,
in this way:
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
$installer = $setup;
$setup->startSetup();
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('quote'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_grid'),
'codice_destinatario',
[
'type' => 'text',
'nullable' => false,
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order'),
'pec',
[
'type' => 'text',
'nullable' => false,
]
);
$setup->endSetup();
}
At the moment I'm not able to show my new fields in checkout.
Thanks
David
magento2 checkout
magento2 checkout
asked 7 mins ago
Davide IandoliDavide Iandoli
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263850%2fadd-custom-fields-in-magento-2-plugin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263850%2fadd-custom-fields-in-magento-2-plugin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown