Skip to content
Available for new work
Pages in Blog

GuidePremium

Comments on the storefront in CoullWorks Blog for Magento 2

What a reader sees and can do in the comments section of a post, the comment thread and its paging, the reply-email opt-out page, and which settings control each part.

Updated 17 November 2026Back to the package pageBuy

This page is about what a reader sees. The settings that control comments are under Stores, Configuration, CoullWorks, Blog, Comments and are listed on Configure. Moderating comments is done in Content, CoullWorks Blog, Comments. The emails the comments send are on Comment emails.

The comments section#

Every post ends with a comments section. What is in it depends on Comments Provided By:

ProviderWhat the reader sees
Built-in (the default)The thread and a form, as below. Comments are held on your store and moderated by you.
Disqus or FacebookA Load comments button. Nothing is requested from the provider until the reader presses it, because loading it shares data with the provider.

With the built-in provider:

  • If Allow Guests to Comment is No, a visitor who is not logged in sees "Log in to comment." and a link, and no form.
  • If comments are closed for the post, the form is replaced by "Comments are closed". A post is closed either by its own Close Comments setting or, when that is left unset, once it is older than Close Comments After (days). 0 leaves comments open.
  • The timing token the form sends comes from /blog/comment/token, listed at the end of this page.

A post with no comments yet: the Comments (0) heading, "Be the first to comment" and the Leave a comment form

The foot of a post with no comments: the heading "Comments (0)", the line "Be the first to comment", then "Leave a comment" with Name, Email (optional, never shown) and Comment fields, the box "Email me if someone replies to my comment (needs an email address)" and a blue Post comment button.

The form#

The form has Name, Email, Comment, a box to be emailed about replies and the Post comment button. The email is optional and never shown, but the reply-email box needs an address. A hidden field, a timing check and a rate limit stop automatic posting. A comment is refused when:

  • it is sent faster than Minimum Time to Fill the Form (seconds) after the page opened (default 3),
  • the hidden field is filled in,
  • the visitor has posted again within Seconds Between Comments From One Visitor (default 30, per post) or more than Comments Per Hour From One Visitor (default 10, per post),
  • it has more links than Most Links in One Comment (default 2), or is longer than Longest Comment (characters) (default 2000),
  • reCAPTCHA is turned on for blog comments in Magento and the check fails.

A refusal shows a general message and does not say which check failed. Nothing is saved when a comment is refused. A comment that passes is shown at once if the visitor is a logged-in customer and Approve Logged-in Customers Automatically is Yes, and otherwise is held as pending for you to approve.

Comment thread#

Address: /blog/comment/thread?post_id=<post id>&cpage=<n>. Layout handle coullworks_blog_comment_thread.

The thread is loaded as a page fragment, which is what the Load comments link and the paging links fetch. It is plain markup with no theme around it, and you would normally never open it yourself. It is useful to know when you style comments: the markup is the numbered lists and Reply buttons below.

The comment thread fragment: a comment from Jo Marsden and an indented reply from Store team, each with a Reply button

The raw fragment as the browser shows it with no stylesheet: a numbered list with the comment from Jo Marsden ("Brilliant checklist. The garden pitch tip alone saved me a wet night in the Lakes.", 17 Nov 2026) and, nested beneath it, the reply from "Store team", each with a Reply button.

  • Approved comments only are shown, oldest first, with replies nested under the comment they answer.
  • A reply is made with the Reply button on the comment. The form then says "Reply to <name>" and offers Cancel reply. Replies can go three levels deep, and the Reply button is left off at the deepest level.
  • Comments per Page (default 20) counts top-level comments, each shown with all its replies. The rest are on numbered pages, reached with Earlier comments and Later comments links and a "Page 1 of 2" label.
  • A reply written in Content, CoullWorks Blog, Comments by the store appears as "Store team".
  • The page is cached; it is cleaned when a comment on the post changes.

Unsubscribe from reply emails#

Address: /blog/comment/unsubscribe?c=<comment id>&t=<token>. Layout handle coullworks_blog_comment_unsubscribe.

When a commenter ticks "Email me if someone replies" and a reply is approved, they get an email with a "Stop these emails" link. The link has the comment id and a signed token and needs no login.

The unsubscribe confirmation page: Reply emails stopped

The page after pressing the link: the title "Reply emails stopped" and the line "You will not get any more emails about replies to your comments on this blog.", inside the normal Luma page.

  • A link that is incomplete, altered or for a comment that has been deleted shows "This link does not work" with the note "It may be incomplete, or the comment it came from has been deleted."
  • The page is sent to search engines as NOINDEX,NOFOLLOW.
  • The capture was made with a link signed by the module's own token service, because the real link only exists inside a sent email.

Routes with no page#

Three more routes exist for the comment form and the view counter. They return data, not a page, so there is nothing to show:

RouteWhat it does
POST /blog/comment/addReceives the form and answers in JSON with a status of approved or pending. It answers 400 for a field problem or a comment the spam checks refuse (without saying which check), 429 when the rate limit is hit, and 403 only when comments are closed, guests are not allowed or the form key is wrong.
GET /blog/comment/token?post_id=<id>Returns the timing token for the form. 404 when the post is not visible.
POST /blog/stat/viewCounts a view of a post, unless the visitor's user agent matches Ignore Views From These User Agents. It answers 204.

Their parameters are in Layout and templates.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.