Download the PHP package infrangible/m2-retail-store without Composer
On this page you can find all versions of the php package infrangible/m2-retail-store. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infrangible/m2-retail-store
More information about infrangible/m2-retail-store
Files in infrangible/m2-retail-store
Package m2-retail-store
Short Description Infrangible Magento 2 Retail Store
License MIT
Homepage https://www.infrangible.dev/modules/retail-store
Informations about the package m2-retail-store
Infrangible Retail Store
Store locator for shops with physical branches: retail stores managed in the admin, shown on Google Maps, a search for the nearest store and a page for every store. The pages and search results are CMS blocks, so their layout can be changed without a theme. Uses Infrangible Google Maps for the maps and the Geocoding API, and Infrangible CMS Filter for the template syntax.
Admin
Infrangible > Retail Store:
- Manage Retail Stores: code, name, description, image, opening hours, special opening hours, status, contact data, address, directions, latitude and longitude, map image, template (CMS block), URL key, SEO text, note with type and features
- Manage Features: name, image and status of features like parking, assigned to stores
Images are saved in pub/media/retail_store (JPG, GIF, PNG or WebP).
Store pages
Every active store has a page under its URL key with the URL suffix of categories, for example munich.html. The
page shows the CMS block of the store, or the CMS block of the configuration, filtered with the data of the store:
| Variable | Value |
|---|---|
name, street, city, … |
the attributes of the store |
has_<attribute> |
whether the attribute has a value, for {{if}} |
url |
the URL of the store page |
features |
the features of the store (name, image) |
nearby_stores |
the three nearest other stores, with these variables and distance |
Widgets
| Widget | Content |
|---|---|
| Retail Stores Search | a location with suggestions of Google Maps (countries of the widget, Germany by default), a radius and the buttons to search and to determine the location |
| Retail Stores Map | a map with all active stores as markers |
| Retail Stores Map within Radius | a map with the active stores within a distance of a center, with header, result and footer CMS blocks |
The search shows the result CMS block of the widget with the found stores, sorted by distance, or the CMS block for no
result. The result blocks get the stores as variable retail_stores (with distance in kilometers) and their markers
as variable marker_json, for the widget "Google Maps Json Marker":
Only active CMS blocks of all store views or the current one are shown.
Configuration
Stores > Configuration > Infrangible Solutions > Retail Store:
- CMS Block: the template of store pages without an own template
- Info Window CMS Block: the content of the info windows of the markers, filtered with the data of the store
The API key of Google Maps is set in Infrangible Google Maps.
Demo
The first command creates 18 stores, the second the CMS blocks, the page retail-stores and the configuration.
Requirements
- Magento Open Source or Adobe Commerce 2.4.6 or newer
- PHP 8.1 or newer
- An API key of the Google Maps Platform
For the Hyvä theme: Infrangible Retail Store Hyvä. The store pages in the XML sitemap: Infrangible Retail Store Sitemap.
Installation
In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy.
License
Infrangible Retail Store is licensed under the MIT License - see the LICENSE file for details.
All versions of m2-retail-store with dependencies
fewedev/base Version ~2.4.1
infrangible/m2-backend-widget Version ~4.0.4
infrangible/m2-cms-filter Version ~2.0.0
infrangible/m2-core Version ~5.0.4
infrangible/m2-foundation Version ~3.0.1
infrangible/m2-google-maps Version ~2.0.0
magento/framework Version ~103.0.6
magento/module-backend Version ~102.0.0
magento/module-cms Version ~104.0.0
magento/module-config Version ~101.2.0
magento/module-customer Version ~103.0.0
magento/module-eav Version ~102.1.0
magento/module-media-storage Version ~100.4.0
magento/module-quote Version ~101.2.0
magento/module-sales Version ~103.0.0
magento/module-store Version ~101.1.0
magento/module-theme Version ~101.1.0
magento/module-widget Version ~101.2.0
psr/log Version ~2.0.0||~3.0.0
symfony/console Version ~5.4.0||~6.4.0||~7.4.0