Skip to main content
All CollectionsHeureka | Trust Badge
How to implement checkbox for refusing satisfaction questionnaire
How to implement checkbox for refusing satisfaction questionnaire

Give your customers an option to opt out of receiving satisfaction questionnaire

Lucia Dvořáková avatar
Written by Lucia Dvořáková
Updated over 2 months ago

It is possible to add the checkbox to your theme with for example the following snippet:

{% comment %} Overeno Zakazniky - Heureka start {% endcomment %} <p> <label style="display:inline; float:none; text-transform: inherit;" class="heureka-inputs"> <input name="attributes[Heureka-Dotaznik]" id="heurekaHiddenCheckbox" value="Yes" type="hidden" /> <input name="attributes[Heureka-Dotaznik]" id="heurekaCheckbox" type="checkbox" value="No" />I do not want to receive a satisfaction questionnaire from Verified By Customers. </label> </p> {% comment %} Overeno Zakazniky - Heureka end {% endcomment %}

The code can be placed inside the file which determines the structure of the cart. The name of this file may differ from theme to theme (e.g. cart.liquid, mini-cart.liquid, etc.). The placement within the file is not strictly given and can be chosen to go well with the rest of the elements in the cart.

The text next to the checkbox can be edited within the script.

The attribute Heureka-Dotaznik with a value of yes or no is then passed to the order details, and determines whether or not data about the order will be exported to Heureka.

image.png (1011×584)

Note: due to Shopify limitations, it is not possible to add the checkbox to checkout.

Did this answer your question?