Comments (2)
hi @Vikram0811
Thanks for your interest in this module. Since you're asking how to extend the module I'll assume you're a developer.
Can we add more than one input area?
You could, but it's going to be a lot of work to do so. This extension wasn't designed with this in mind, so you're going to have to change a large portion of the extension, as you'll also need to add code to save the data.
To display your fields you can override form-content.html
To send the entered data to the server you can override model/checkout/order-comment-validator.js
To parse your data on the server you're going to have to change every class from Api/ and every class Model/ except the source model.
You'll need an setup upgrade script to add your columns in the database.
You'll need to change the observer to pass on your data from the quote to the order object.
After that you need to add appropriate changes to display them somewhere in the backend.
Can we change the location of order comment input area
the location is defined in the layout file within the before-place-order node. You could change the location to some other node that automatically renders it's children. billing-step > children > payment > children > afterMethods > children might be the node that you want to use. Refer to the magento discount code checkout_index_index.xml. You're also going to have to update the form
var in model/checkout/order-comment-validator.js with the new location.
How can we disable comments in the backend on the order grid?
you can toggle the visibility with the columns button on the grid
Do the order comments appear in order confirmation email sent to user?
refer to issue #6 to add the comment in the order confirmation mail.
How can I change the default text Do you have any comments regarding the order?
You can change this text by using the translation feature of magento. You should be able to use this to do english to english translations.
from magento2-ordercomments.
Hi,
I have one change to do on this extension.
- How can I add a calendar with order comments, so that customer can select order delivery date and that gets saved with order comment?
Thanks
from magento2-ordercomments.
Related Issues (20)
- No output, not verbosing HOT 1
- Method Not Allowed HOT 4
- PHP Returns Problem on Magento 2.1.14
- Move comment field to first step HOT 2
- Adding comment in order POST call HOT 1
- composer.json is not compatible with php 7.3 (and so with Magento 2.3.3) HOT 5
- Compatability with Magento 2.3.3 HOT 2
- Cache Comments
- Change css of this extension
- Comment field not showing in checkout HOT 3
- Support Magento 2.4 HOT 1
- Can not add custom translation HOT 1
- Issue at production mode HOT 1
- Managing checkout comment REST API HOT 1
- Unable to save comment with Stripe Payment HOT 2
- Adobe issue with extension HOT 1
- Please add the greek translation
- Arabic Translation
- extension not working for billdesk payment method in magento 2.4.3 HOT 6
- Cannot install extension with PHP 8.2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-ordercomments.