Giter VIP home page Giter VIP logo

Comments (2)

boldsidney avatar boldsidney commented on August 16, 2024

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
image

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.

Vikram0811 avatar Vikram0811 commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.