shopgate / magento2-website-sample-data
Sample data that provides multiple websites and stores to use for various work
Installs: 120
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.2.0||~7.3.0
- magento/module-directory: 100.3.*
- magento/module-sample-data: 100.3.*
- magento/module-store: 101.0.*
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2025-03-08 12:04:14 UTC
README
Purpose
The default M2 sample data does not contain a multi-site solution, this introduces some data to work with when developing tests. Ideally we would also create other sample data modules which would introduce categories, products, etc. to the websites here. It would be bare minimum to increase speed of installation and running.
Structure
- web_computer - default, USD
- grp_desktop
- store_desktop_en - English, lbs
- store_desktop_ru - Russian, kgs
- store_desktop_de - German, kgs, default
- store_desktop_dis - English, lbs, disabled
- grp_laptop - default
- store_laptop_en - English, lbs, default
- store_laptop_ru - Russian, kgs
- store_laptop_de - German, kgs
- store_laptop_dis - English, lbs, disabled
- grp_desktop
- web_phone - RUB
- grp_tablet - default
- store_tablet_en - English, lbs
- store_tablet_ru - Russian, kgs default
- store_tablet_de - German, kgs
- store_tablet_dis - English, lbs, disabled
- grp_accessory - disabled
- store_accessory_en - English, lbs, default, disabled
- store_accessory_ru - Russian, kgs, disabled
- store_accessory_de - German, kgs, disabled
- grp_tablet - default
Installation
Can be installed manually by including the package via composer:
composer require shopgate/magento2-website-sample-data
If you have any other magento 2 plugin that suggests this sample data, e.g. shopgate/connect-integration-magento2
the sample data will be installed via regular magento command bin/magento sampledata:deploy
Tests
Run tests the same way you do normally. You may also adjust your integration phpunit.xml to include the tests in the run.
/var/www/html/vendor/phpunit/phpunit/phpunit --configuration /var/www/html/dev/tests/integration/phpunit.xml /var/www/html/vendor/shopgate/magento2-website-sample-data/Test/Integration
Uninstall
The best way to remove the module fully is manually:
bin/magento module:uninstall Shopgate_WebsiteSampleData --remove-data
You could also use the standard removal, but unlike the previous solution there is no hook that will remove the websites, groups, stores and configs from the database. Just the module.
bin/magento sampledata:remove
bin/magento setup:upgrade
Todo's
We'll need to populate these entities with proper data to do tests on.
- Create categories
- Create products