To integrate your store with “Verified by Customers” (Heureka.cz and Heureka.sk, the leading price-comparison and review platform in the Czech Republic and Slovakia), you can use apps available on the Shopify App Store. But if you use Flow, you can set up the process yourself.
Flow is an official Shopify app that is easy to use and lets you intuitively create and automate various processes.
In this article we'll show a workflow that automatically sends data to Heureka after a completed purchase. A few days later, Heureka automatically emails the customer the “Verified by Customers” survey.
- Czech Republic and Slovakia. Our workflow distinguishes Czech and Slovak purchases based on the delivery address.
- Order data. Customer data and purchased products (their variant IDs) are automatically sent to Heureka. If you have an XML feed set up, the customer can also rate the products on your store.
- Customer consent. By default, we assume the customer agrees to receive the survey, but we add an option in the cart where the customer can opt out.
- API keys. Prepare the API keys from Heureka that you'll use to authorize your API requests. If you sell to both the Czech Republic and Slovakia, you'll prepare two different keys. You can find the secret key for the CZ Heureka here.
Setting up the workflow in the Flow app
- Download the workflow we created here, which you'll import into your store in the next step
- Install and open the Flow app in your store, then click the Import button
- Select the downloaded file and open the workflow
- In Flow, edit the actions named
Send HTTP request. ReplaceYOUR API KEYwith your actual keys. - You can adjust or remove the conditions for the Czech Republic and Slovakia according to your needs.
- Activate the workflow
Adding a checkbox to the cart to opt out
You should give customers the option to opt out of the survey. You can achieve this by adding a checkbox code to your theme.
- Open the Online Store section and choose Edit code in your theme
- Find where the cart code is in your theme, usually the file main-cart-items.liquid or cart.liquid
- Copy and paste the code below into your theme. The code must be inside the form tag.
- Test that you placed the code in the right spot. Make test orders; in the admin order detail you should see whether the customer checked the opt-out box.
- In the Flow app you can open the Run history and check whether the API request was sent.
On some themes you may run into an error. For more information about adding cart attributes to the cart, see the discussion here, or contact us.
<p className="cart-attribute__field" >
<input type="hidden" name="attributes[Heureka-Dotaznik]" value="Heureka-Yes" />
<input id="heureka" type="checkbox" name="attributes[Heureka-Dotaznik]" value="Heureka-No"{% if cart.attributes["Heureka-Dotaznik"] == "Heureka-No"
%} checked{% endif %}>
<label for="heureka">I do not agree to receiving the satisfaction survey as part of the "Verified by Customers" program, which helps improve services.</label>
</p>



