SimpleCart SimpleCart 2.x Snippets scCreateComment

The scCreateComment snippet is called as a FormIt hook in the scOrdersDetailCommentsForm Chunk. This chunk is inserted into the scOrdersDetail chunk through the [[+order.commentsform]] placeholder, called by the scGetOrders snippet when viewing a specific order.

Table of Contents

Standard Usage

This is how the hook is called in the scOrdersDetailCommentsForm Chunk.


<form action="[[~[[*id]]? &[[+detailKey]]=`[[+ordernr]]`]]" method="post" id="simplecartComment">
    <input type="hidden" name="nospam" value="" />
    <input type="hidden" name="addComment" value="true" />

        <textarea name="comment" rows="4" cols="60" id="fld-comment">[[+fi.comment]]</textarea>

    <p class="submit">
        <input type="submit" value="[[%simplecart.orders.comments.add]]" />



Additional properties on the scGetOrders snippet may affect this snippet.


Default: order

The URL parameter containing the order number for which comments are created.