thelia/order-comment-module

Installs: 423

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 8

Forks: 4

Open Issues: 1

Type:thelia-module

2.0.0 2022-11-28 16:52 UTC

This package is auto-updated.

Last update: 2024-10-28 21:02:10 UTC


README

This module allows your customers to write a comment for an order. Then you can find this comment in the order detail page of the backoffice.

OrderComment preview

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is OrderComment.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/order-comment-module:~2.0

Loop

OrderCommentLoop : order.comment.comment

This loop return the comment of an order.

Input arguments

Output arguments

Example

{ifloop rel="order_comment_loop"}
    {loop name="order_comment_loop" type="order.comment.comment" order_id="$order_id" }
        {$ORDER_COMMENT}
    {/loop}
{/ifloop}
{elseloop rel="order_comment_loop"}
    <p class="alert alert-warning">
        {intl l="No comment for this order was defined." d="ordercomment"}
    </p>
{/elseloop}

Other ?

It may be convenient to display the comment on the detail page of the customer's order. To do that, uses the loop described previously.