@blueacornici/storefront-storelocator
v1.0.4
Published
Store Locator block for Adobe Commerce Storefront
Readme
Store Locator Block for Adobe Commerce Storefront
This npm package provides a Store Locator block that can be easily installed into any Adobe Commerce Storefront project.
Features
- Store availability by leveraging native inventory sources
- Interactive maps using Leaflet.js
- Store filtering by ZIP code
- Seamless integration with Adobe Commerce Storefront
- Automatic installation into your project's blocks directory
Installation for Merchants
Install via npm
Note: This installation method has not been independently verified. Please use with care and review the changes after installation.
To install the Store Locator blocks in your Adobe Commerce Storefront project:
For stable releases (Recommended):
npm install @blueacornici/storefront-storelocatorFor beta/testing versions:
npm install @blueacornici/storefront-storelocator@betaAlternative: Install from GitHub Packages
If you prefer to use GitHub Packages or need access to specific development versions:
# Configure npm to use GitHub Packages for this scope
npm config set @blueacorninc:registry https://npm.pkg.github.com
# Authenticate with GitHub Packages (if you have gh CLI)
echo "//npm.pkg.github.com/:_authToken=$(gh auth token)" >> ~/.npmrc
# Install latest stable version
npm install @blueacorninc/storefront-storelocator
# Or install latest beta
npm install @blueacorninc/storefront-storelocator@beta
# Or install specific prerelease version
npm install @blueacorninc/[email protected]Authentication Note: GitHub Packages requires authentication. If you don't have
ghCLI, you can create a personal access token at https://github.com/settings/tokens withread:packagespermission and use it instead.
Package Details
- npmjs.com:
@blueacornici/storefront-storelocator(recommended for most users) - GitHub Packages:
@blueacorninc/storefront-storelocator(for development/beta versions)
The postinstall script will automatically copy the store locator blocks to your project's blocks/ directory.
Requirements
- Your project must have a
blocks/directory (standard in Adobe Commerce Storefront projects) - Node.js and npm installed
Manual Installation
Alternatively, you can manually copy the blocks:
- Download or clone this repository
- Copy the
store-locator/andproduct-availability/directories fromblocks/to your storefront'sblocks/directory - The blocks will be available at
/blocks/store-locatorand/blocks/product-availability
Verify Installation
After installation, you should see the store locator blocks in your blocks/ directory with the following structure:
blocks/
├── store-locator/
│ ├── store-locator.js
│ ├── store-locator.css
│ └── README.md
└── product-availability/
├── product-availability.js
├── product-availability.css
└── README.mdUsage
Once installed, the Store Locator block can be used in your Adobe Commerce Storefront pages by referencing it in your content.
Configuration
Store Locator leverages native Adobe Commerce SaaS Sources and Inventory to provide store locations and product availability. You'll need to configure:
- Sources - Set up store locations in Adobe Commerce Admin under Stores > Inventory > Sources
- Inventory - Assign product inventory to your sources through Catalog > Products
Features
- Store availability by leveraging native inventory sources
- Interactive maps with Leaflet.js integration
- ZIP code filtering for easy store location
- Store selection with session storage
- Responsive design that works on all devices
Support
For support and documentation, please visit the main repository.
License
MIT License - see LICENSE file for details.
