Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

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.

Reading time: about 2 minutes
Developer

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.

The Code editor in the Shoporama admin with the file list for the MBN-Delaware theme on the left and the HTML code for after_purchase.html open on the right
In the Code editor under Design, you choose a theme file in the list on the left and edit the HTML code on the right. This is where you add the comment field to the product page template and the cart template.

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.