Spree Address Autocomplete is a convenient extension for the Spree Commerce platform, designed to enhance the user experience by providing address autocomplete functionality. With this extension, users can effortlessly fill in address details during checkout, account creation, or while creating orders and customers from the admin panel.
- Google Places API Integration: Utilizes Google Places API to suggest related addresses as users begin filling in their address details.
- Automatic Field Population: Automatically fills in related address fields such as city, state, zip code, and country based on the selected address suggestion.
-
Add this extension to your Gemfile with this line:
gem 'spree_address_autocomplete'
-
Install the gem using Bundler
bundle install
-
Copy & run migrations
bundle exec rails g spree_address_autocomplete:install
-
Restart your server
If your server was running, restart it so that it can find the assets properly.
To enable this integration:
- Navigate to store's settings and configure the Google Places API key for the Spree Address Autocomplete Extension.
- Once configured, the integration will be enabled and ready to use.
Once the extension is installed and configured, users can start experiencing the benefits of address autocomplete across various areas of your Spree Commerce platform, including:
- Checkout Process: Address autocomplete simplifies the checkout process by suggesting and populating address fields as users begin typing.
- Account Creation: Enhance user registration and account creation by streamlining address input.
- Customer and Order Management: Simplify the process of creating and updating customer or order details directly from the admin panel with the assistance of address autocomplete.
First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.
bundle update
bundle exec rakeWhen testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_address_autocomplete/factories'bundle exec gem bump -p -t
bundle exec gem releaseFor more options please see gem-release REAMDE