Post in category
- Website installation - introduction 💡
- Installation to known platforms ⭐
- Adding a New Form
- Web Configurator - Field Pairing ⭐
- Web Configurator - Control Elements
- App - field mapping
- 📍 Addresses - settings
- 💼 Companies - settings
- ✉️ E-mails - settings
- 📞 Phone numbers - settings
- 👤 Names - settings
- Deactivating/activating services in a form
- Foxentry Appearance and Behavior 🎨
- Javascript API
- ⚙️ Rest API
- Determining the status of form validation
- Custom processing of validation data - Callbacks
- Cookies 🍪
- How to clear your browser cache
- API Key Expiration
- Shopify
Opencart
In this guide, you'll learn how to add the Foxentry plugin to your website or online store. The implementation itself is split into two main parts, and with our help even a complete beginner can handle it with ease.
Copy your Foxentry script
The first step is connecting your website to Foxentry using a unique JavaScript snippet. This script powers instant data correction and autocomplete suggestions directly in your forms.
- In the Foxentry administration, go to the Installation and settings section (point 1 in the image).
- Copy your unique JavaScript code (point 2). Clicking the code shows a "Copied" confirmation. If you don't have a project yet, check out the guide on how to create one.
Installing the script on the OpenCart platform
Pasting the copied code into your OpenCart store is quick and happens directly in the built-in template editor.
- In the OpenCart administration, click Design in the left-hand menu (1) and choose Theme Editor from the menu (2).
- In the Theme Editor, select the common folder in the directory structure.
- Next, click the footer.twig file (1). In the code editor that opens, scroll down and paste your copied JavaScript code from Foxentry right below the
</footer>tag (2). Confirm the changes by clicking the Save button (3).
Connect your form fields (mapping)
You've now successfully added the script to every subpage. But for validation and autocomplete to actually work, you need to tell Foxentry what each field in your form is for (for example, which field is for the email address and which is for the city). This connection is called mapping, and you have two options:
- The interactive web configurator: The fastest and most popular way. You launch the configurator directly over your form and assign the correct function to each field with just a few mouse clicks.
- Manually setting identifiers: Suited to more advanced users familiar with HTML. In the Foxentry administration, you manually enter the identifiers of individual fields from your code (e.g.
#billing-cityorinput[name='email']). You can learn more in the manual mapping guide.