diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..43fdee4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,217 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/wordpress,phpstorm,visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=wordpress,phpstorm,visualstudiocode + +### PhpStorm ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### PhpStorm Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +# https://plugins.jetbrains.com/plugin/7973-sonarlint +.idea/**/sonarlint/ + +# SonarQube Plugin +# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin +.idea/**/sonarIssues.xml + +# Markdown Navigator plugin +# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator-enh.xml +.idea/**/markdown-navigator/ + +# Cache file creation bug +# See https://youtrack.jetbrains.com/issue/JBR-2257 +.idea/$CACHE_FILE$ + +# CodeStream plugin +# https://plugins.jetbrains.com/plugin/12206-codestream +.idea/codestream.xml + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +### WordPress ### +# Core +# +# Note: if you want to stage/commit WP core files +# you can delete this whole section/until Configuration. +/wp-admin/ +/wp-content/index.php +/wp-content/languages +/wp-content/plugins/index.php +/wp-content/themes/index.php +/wp-includes/ +/index.php +/license.txt +/readme.html +/wp-*.php +/xmlrpc.php +.wp-* + +# Configuration +wp-config.php + +# Example themes +/wp-content/themes/twenty*/ + +# Example plugin +/wp-content/plugins/hello.php + +# Uploads +/wp-content/uploads/ + +# Log files +*.log + +# htaccess +/.htaccess + +# All plugins +# Note: If you wish to whitelist plugins, +# uncomment the next line +#/wp-content/plugins + +# All themes +# Note: If you wish to whitelist themes, +# uncomment the next line +#/wp-content/themes +# End of https://www.toptal.com/developers/gitignore/api/wordpress,phpstorm,visualstudiocode + + + + +# Numerous always-ignore extensions +*.diff +*.err +*.orig +*.log +*.rej +*.swo +*.swp +*.vi +*~ +*.sass-cache +.dccache + +# OS or Editor folders +.DS_Store +Thumbs.db +.cache +.project +.settings +.tmproj +*.esproj +nbproject +*.sublime-project +*.sublime-workspace + +# Dreamweaver added files +_notes +dwsync.xml + +# Komodo +*.komodoproject +.komodotools + +# Folders to ignore +.hg +.svn +.CVS +intermediate +.idea +cache +test/database/data/* +node_modules +autosuggest +videos +screenshots +*.zip +*.env diff --git a/README.md b/README.md index 16596ff..3dc9b5f 100644 --- a/README.md +++ b/README.md @@ -1 +1,61 @@ -Swiftcomplete address search for WooCommerce +![SwiftLookup](./assets/screenshot-1.jpg) + + +# SwiftLookup for WooCommerce +The SwiftLookup Plugin enhances WooCommerce checkout by providing fast and accurate address and what3words autocomplete, improving user experience and reducing delivery errors. + +## What is Swiftcomplete? +Swiftcomplete is a software that allows you to look up and validate addresses, postcodes and coordinates. It is designed to be integrated into your address capture flow, for example on e-commerce checkout pages. Swiftcomplete is uniquely designed to return a valid address as fast as possible. + +## Why use Swiftcomplete? + +Improves quality of address data + +- If addresses aren’t checked and validated then there is no guarantee they can be used successfully for deliveries or geolocating. + +- Poor addresses = missed or failed deliveries, costing businesses money and creating poor customer experience. + + +## Easy to set up and run + +- 3p per address flat fee - choose pre-paid packs from £10. + +- Plugins available for BigCommerce and WooCommerce + +- Documentation for API set-up: click [here](https://swiftcomplete.notion.site/Swiftcomplete-Integration-Docs-1a466db17f3b80a18a63dced29d4cfb5?pvs=4) + + +## Simplify your user experience + +- Address validation makes address-entry quicker, easier and less error-prone. + +- Swiftcomplete UI is specifically designed to match a customer with their deliverable address as quickly as possible + + +## Key Features + +- Fast: Operates with low latency + +- Comprehensive: Combines high quality geospatial databases and multi-residence addresses for best possible address matching. + +- Easy to use: Simple, effective user interface + +- Cost-effective: 3p per address flat rate (Bespoke enterprise solutions available) + +- what3words entry: included as standard + +![SwiftLookup flows](./assets/screenshot-2.png) + + +## More about what3words + +Find our full developer documentation here: +[https://swiftcomplete.notion.site/Swiftcomplete-WooCommerce-plugin-for-SwiftLookup](https://swiftcomplete.notion.site/Swiftcomplete-WooCommerce-plugin-for-SwiftLookup-1a466db17f3b8018bc4ce65f85f6c852) + +You can learn more about our privacy policy here: +[https://www.swiftcomplete.com/privacy/](https://www.swiftcomplete.com/privacy/) + + +## Get in touch with us + +Have any questions? Want to learn more about how the SwiftLookup plugin works? Get in touch with us at [support@swiftcomplete.com](mailto:support@swiftcomplete.com). \ No newline at end of file diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..8c611fe --- /dev/null +++ b/README.txt @@ -0,0 +1,71 @@ +=== SwiftLookup for WooCommerce === +Contributors: Swiftcomplete +Tags: Swiftcomplete, address validator, what3words address, searchbox, search, address, validation, autosuggest, w3w, capture, address lookup, autocomplete, verification, address collection, address finder, cleansing, address standardising +Requires at least: 4.7 +Tested up to: 6.4 +Stable tag: 1.0.8 +Requires PHP: 7.0 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +Swiftcomplete is designed to be integrated into your address capture flow, for example on e-commerce checkout pages. + +## Key Features + +* Fast: Operates with low latency +* Comprehensive: Combines high quality geospatial databases and multi*residence addresses for best possible address matching. +* Easy to use: Simple, effective user interface +* Cost-effective: Credit packs from £10 (3p per address) (Bespoke enterprise solutions available) +* what3words entry: included as standard + +== Installation == + += WordPress Installation (recommended) = + +You can install SwiftLookup plugin through the WordPress plugins page in your WordPress admin panel. + +1. Navigate to the _Plugins > Add New_ page +2. Search for "SwiftLookup" +3. Click the _Install Now_ button. +4. Once installed, you can activate the plugin on the _Plugins_ page. + += Manual Installation = + +You can download the SwiftLookup plugin from the [WordPress Plugins site](https://wordpress.org/plugins/swiftlookup/#installation). + +1. Download the SwiftLookup plugin from the WordPress Plugins site +2. Once you have downloaded the zipped plugin, you can upload it to your WordPress installation by navigating to _Plugins > Add New_, click the _Upload Plugin_ button +3. Select the zipped plugin file and click _Install Now_ +4. Once installed, you can activate the plugin on the _Plugins_ page. + += More about what3words = + +Find our full developer documentation here: +[https://swiftcomplete.notion.site/Swiftcomplete-WooCommerce-plugin-for-SwiftLookup](https://swiftcomplete.notion.site/Swiftcomplete-WooCommerce-plugin-for-SwiftLookup-1a466db17f3b8018bc4ce65f85f6c852) + +You can learn more about our privacy policy here: +[https://www.swiftcomplete.com/privacy/](https://www.swiftcomplete.com/privacy/) + += Get in touch with us = + +Have any questions? Want to learn more about how the SwiftLookup plugin works? Get in touch with us at [support@swiftcomplete.com](mailto:support@swiftcomplete.com). + +== Screenshots == + +1. SwiftLookup +2. SwiftLookup Address flow +3. SwiftLookup - Input Flow - Postcode +4. SwiftLookup - Input Flow - Street Address +5. SwiftLookup - Input Flow - what3words address + +== Changelog == + += 1.0.8 = +* Update the latest swiftlookup.js + += 1.0.7 = +* Added check for address coverage when showing or hiding fields + += 1.0.6 = +* Remove invalid field validation on successful address population + diff --git a/admin/img/logo.png b/admin/img/logo.png new file mode 100644 index 0000000..1b8ef17 Binary files /dev/null and b/admin/img/logo.png differ diff --git a/assets/screenshot-1.jpg b/assets/screenshot-1.jpg new file mode 100644 index 0000000..03829c9 Binary files /dev/null and b/assets/screenshot-1.jpg differ diff --git a/assets/screenshot-2.png b/assets/screenshot-2.png new file mode 100644 index 0000000..421530c Binary files /dev/null and b/assets/screenshot-2.png differ diff --git a/assets/screenshot-3.gif b/assets/screenshot-3.gif new file mode 100644 index 0000000..4ace9ca Binary files /dev/null and b/assets/screenshot-3.gif differ diff --git a/assets/screenshot-4.gif b/assets/screenshot-4.gif new file mode 100644 index 0000000..11375ec Binary files /dev/null and b/assets/screenshot-4.gif differ diff --git a/assets/screenshot-5.gif b/assets/screenshot-5.gif new file mode 100644 index 0000000..a7f2332 Binary files /dev/null and b/assets/screenshot-5.gif differ diff --git a/swiftcomplete.php b/swiftcomplete.php index 8752d6e..100e70a 100644 --- a/swiftcomplete.php +++ b/swiftcomplete.php @@ -1,9 +1,9 @@ -