PHP code example of swissup / module-theme-store-views

1. Go to this page and download the library: Download swissup/module-theme-store-views library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

swissup / module-theme-store-views example snippets

bash
# Enable the module
php bin/magento module:enable Swissup_ThemeStoreViews

# Run setup upgrade
php bin/magento setup:upgrade

# Clear cache
php bin/magento cache:flush
bash
php bin/magento swissup:theme:create-storeviews
bash
# Create store views (skips existing ones)
php bin/magento swissup:theme:create-storeviews

# Force reinstall themes for all store views
php bin/magento swissup:theme:create-storeviews --reinstall

# Show help
php bin/magento swissup:theme:create-storeviews --help
bash
php bin/magento swissup:theme:create-storeviews --reinstall
bash
php bin/magento theme:info