Add a comment field to products in the cart
Learn how to add a comment field to products in the cart, for example for engraving, name printing, or a gift greeting.
Do you want your customers to be able to add a comment to a product when they add it to the cart? You can use it for things like engraving, name printing, a greeting to go with a gift, or other customer requests.
If you want to charge for gift wrapping, use add-ons in the cart and checkout instead. There, the customer checks a box such as "Gift wrapping", and the add-on is added to the order as a regular order line with its own price. It works in the built-in themes Delaware, DelawareDK, Montana, and MontanaB2B. You can still use the comment field for what the customer writes themselves, such as the text for a greeting card.

Add a comment field to the product page
Add an input field to your theme's product page (in the form that adds the product to the cart):
<input type="text" name="comment" placeholder="Optional comment"/>
You can also make the field 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 cart template, show the comment with:
<{if $basket[i].comment}>
<p><{$basket[i].comment|escape}></p>
<{/if}>
The comment follows the order and is shown in the admin under the order details.
Need help? Contact us at support@shoporama.dk.
Related articles
Open cart vs. closed cart: what is the difference?
Understand the difference between an open cart and a closed cart in Shoporama, including stock reservation, the customer experience, and which cart...
Which emails does Shoporama send to my customers?
An overview of the automatic emails Shoporama sends to your customers: order confirmation, shipping confirmation, abandoned cart, product reviews,...
POS: point of sale system for your physical store
Learn how to use Shoporama's POS system to sell in your physical store. Log in with your Shoporama account, scan barcodes, create orders directly,...