Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    Add custom comment programmatically to order in Magento 2

    In this Article, I am going to explain how to add the custom comment in Order.
    Some time, we have a need to add note to order so that we can not miss any thing for the particular order.
    So this is the simplest solution to add note for order in the form of comments.

    Note : self::ORDER_CUSTOM_COMMENT_TEXT, self::ORDER_ID,  I have used these constant variables but you can pass the dynamic value for both orderId and comment message.

    . . .


    Add Your Comment

    Be the first to comment.

    Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again