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.
Note: due to Shopify limitations, it is not possible to add the checkbox to checkout.