Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Steps to add custom field in payment #8940

Merged

Conversation

ajithkumar-maragathavel
Copy link
Contributor

@ajithkumar-maragathavel ajithkumar-maragathavel commented May 15, 2021

Purpose of this pull request

This pull request (PR) adds a new page that explains adding a custom input field on the payment section on the checkout payment step.

Affected DevDocs pages

  • New Topic

Links to Magento source code

Related Pull Requests

Fixes #8927

whatsnew
Added the topic Add a custom field for an offline payment method to the Customize Checkout tutorial.

Copy link
Contributor

@BarnyShergold BarnyShergold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I review fully, there were two points that were on the old PR that were not addressed.

POINT 1
Not sure if Steps 1 & 2 need to be this detailed. Just say create Learning/CustomField and register it. Perhaps a link to : https://devdocs.magento.com/videos/fundamentals/create-a-new-module/

POINT 2
This is now a deprecated method. This should be done with a Patch / Declarative Schema : https://devdocs.magento.com/guides/v2.3/extension-dev-guide/declarative-schema/

Whilst not complusory for 2.3 it is now the accepted way and would also apply to the v2.4 of this guide and futureproof the content.

Also database changes should not be done using InstallData, it should be done by a InstallSchema - you have mixed the two.

@dobooth - can we get a second opinion on this? As a 2.4v is needed and 2.3 support it, should this not be done using the declarative schema method?

Please can these be addressed before a detailed check is done?

@ajithkumar-maragathavel
Copy link
Contributor Author

@BarnyShergold I will fix the Point 1 and update the PR.
Let me wait for the comment from @dobooth and provide the proper fix for the Point 2 later.

@dobooth
Copy link
Contributor

dobooth commented May 18, 2021

Thanks for the discussion, gents. We should use the declarative schema. We certainly don't want to add new content that we know will be out of date. Let's do it properly. We can help if needed.

@ajithkumar-maragathavel
Copy link
Contributor Author

@BarnyShergold @dobooth Updated the doc with the declarative schema approach. Please review it.

Copy link
Contributor

@keharper keharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ajithkumar-maragathavel This is a great start. It'll probably take 3 or 4 rounds of comments to finalize this PR.

@ajithkumar-maragathavel
Copy link
Contributor Author

ajithkumar-maragathavel commented May 28, 2021

@keharper Thanks for your time for the detailed review. I have updated the requested changes. Let me know if everything fine.

Copy link
Contributor

@keharper keharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for taking this long to respond to your previous round of changes.

@keharper
Copy link
Contributor

keharper commented Jun 9, 2021

Forgot to tag @ajithkumar-maragathavel

Copy link
Contributor

@keharper keharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ajithkumar-maragathavel There are still quite a few comments from my previous review that have not been addressed. I'll only comment on the new material here.

@dobooth
Copy link
Contributor

dobooth commented Jun 21, 2021

@ajithkumar-maragathavel How's this one coming along?

@ajithkumar-maragathavel
Copy link
Contributor Author

@ajithkumar-maragathavel How's this one coming along?

hey @dobooth yep it's coming good so far. Had couple of rounds of review for this PR.
I have finished all the requested changes. waiting for the further review on the changes.

Copy link
Contributor

@keharper keharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your patience, @ajithkumar-maragathavel. From my perspective, this PR is ready to be merged. @BarnyShergold, any further comments?

@keharper keharper added 2.3.x Magento 2.3 related changes 2.4.x Magento 2.4.x related changes New Topic A major update published as an entirely new document labels Jun 21, 2021
Copy link
Contributor

@BarnyShergold BarnyShergold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an awesome piece of work - looks super clear and easy to follow.

Gold ⭐ !

@dobooth
Copy link
Contributor

dobooth commented Jun 25, 2021

Great teamwork here. Thanks for all the effort!

@dobooth
Copy link
Contributor

dobooth commented Jun 25, 2021

@magento import pr to magento-devdocs/devdocs

@magento-engcom-team
Copy link

@dobooth the pull request successfully imported.

@magento-cicd2 magento-cicd2 merged commit 52ca3e3 into magento:master Jun 29, 2021
@ghost
Copy link

ghost commented Jun 29, 2021

Hi @ajithkumar-maragathavel, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.3.x Magento 2.3 related changes 2.4.x Magento 2.4.x related changes New Topic A major update published as an entirely new document Partner: Ziffity partners-contribution PR created by Magento partner Progress: done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add custom input field in offline payment method
6 participants