Add a comment to a product in your cart
Learn how to add a comment field to products in the basket - for engraving, gift wrapping or other customer requests.
Do you want your customers to be able to leave a comment on the product when they add it to the basket? This can be used for engraving, gift wrapping, name printing or other customer requests.
Add a comment field on the product page
Add an input field in your theme's product page (in the add to cart form):
<input type="text" name="comment" placeholder="Any comment"/>
The field can also be made as type="hidden" if the comment is set automatically and should not be shown to the customer.
Show the comment in the cart
In your theme's basket template, the comment is shown with:
<{if $basket[i].comment}> <p><{$basket[i].comment|escape}></p> <{/if}>
The comment is included with the order and is shown in admin under order details.
Do you need help? Contact us at support@shoporama.dk.