Giter VIP home page Giter VIP logo

Comments (5)

boldsidney avatar boldsidney commented on August 16, 2024 9

@knoblochtobias , @tlygnersjo

Apologies for the late reply.

As for your question, we haven't done this on a live webshop, but displaying the comment in the New Order Confirmation Template should be possible. You can retrieve the comment with the code {{var order.getBoldOrderComment()}} and put it into your template.

Example implementation - Placing the comment at the bottom of the order-details table:
email_comment_implementation

The depend constraint ensures that everything in between will only get shown if the comment is found.

{{depend order.getBoldOrderComment()}}
    <tr>
        <td colspan="2">
            <h3>{{trans "Order Comment"}}</h3>
            {{var order.getBoldOrderComment()|escape|nl2br}}
        </td>
    </tr>
{{/depend}}

I've only tested this with the magento payment method Check / Money order.

Let me know if there are any issues with getting this to work

from magento2-ordercomments.

tzcccc avatar tzcccc commented on August 16, 2024 1

Thanks. Did work for me!

from magento2-ordercomments.

tlygnersjo avatar tlygnersjo commented on August 16, 2024

+1 I've also got the same question. Is this possible @boldcommerce?

from magento2-ordercomments.

tlygnersjo avatar tlygnersjo commented on August 16, 2024

Thanks for your reply and a great explanation! @boldsidney

Sorry for my late response as well! I'll let you know if thats working.

from magento2-ordercomments.

ashvinimarwal avatar ashvinimarwal commented on August 16, 2024

Working Perfect
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.