PHPackages                             swissup/module-theme-store-views - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. swissup/module-theme-store-views

ActiveMagento2-module

swissup/module-theme-store-views
================================

Magento 2 module that automatically creates store views for each Swissup theme and applies corresponding themes with full installation

v1.0.3(5mo ago)024OSL-3.0PHP

Since Jul 8Pushed 5mo agoCompare

[ Source](https://github.com/swissup/theme-storeviews)[ Packagist](https://packagist.org/packages/swissup/module-theme-store-views)[ Docs](https://github.com/swissup/theme-storeviews)[ RSS](/packages/swissup-module-theme-store-views/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Swissup Theme Store Views
=========================

[](#swissup-theme-store-views)

[![Latest Stable Version](https://camo.githubusercontent.com/4b7a6713112f5dd3ce2ce73f5d46ada0c29c185fc265c975c47165ecf3670871/68747470733a2f2f706f7365722e707567782e6f72672f737769737375702f6d6f64756c652d7468656d652d73746f72652d76696577732f762f737461626c65)](https://packagist.org/packages/swissup/module-theme-store-views)[![Total Downloads](https://camo.githubusercontent.com/c663f1387473f3a8310cfdab85e9ed424476ab52f6b18f712a1f108256c7b048/68747470733a2f2f706f7365722e707567782e6f72672f737769737375702f6d6f64756c652d7468656d652d73746f72652d76696577732f646f776e6c6f616473)](https://packagist.org/packages/swissup/module-theme-store-views)[![License](https://camo.githubusercontent.com/3068b2978b6bd297eb528f477e0bfa3a1fc9d8cd4bf052d8a93e54b33a8c1ed9/68747470733a2f2f706f7365722e707567782e6f72672f737769737375702f6d6f64756c652d7468656d652d73746f72652d76696577732f6c6963656e7365)](https://packagist.org/packages/swissup/module-theme-store-views)[![PHP Version](https://camo.githubusercontent.com/6cfb253e9a338238bb7cf4653cd88b7647c279e3a0d1c3e1ea68c6982c07302b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e34253242253230253743253230382e782d626c7565)](https://packagist.org/packages/swissup/module-theme-store-views)[![Magento](https://camo.githubusercontent.com/3a443488ed8a2c615d27dc9d6e2edd939decf4df8319faeeefa889874eb2b173/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342e782d6f72616e6765)](https://packagist.org/packages/swissup/module-theme-store-views)

A Magento 2 module that automatically creates store views for each Swissup theme and applies the corresponding theme to them, including running theme-specific installers.

🎯 What it does
--------------

[](#-what-it-does)

This module streamlines the process of setting up multiple Swissup themes by:

- **Creating store views** for each available Swissup theme
- **Applying themes** automatically to their corresponding store views
- **Running theme installers** to install CMS content, blocks, sliders, and configurations
- **Performing maintenance** tasks like setup upgrade and reindexing

📋 Requirements
--------------

[](#-requirements)

- Magento 2.4+ (tested on 2.4.x)
- Swissup themes installed via Composer
- PHP 7.4+ or 8.x
- Swissup Marketplace module

🚀 Installation
--------------

[](#-installation)

### Method 1: Composer (Recommended)

[](#method-1-composer-recommended)

```
# Install via Composer
composer require swissup/module-theme-store-views

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

# Run setup upgrade
php bin/magento setup:upgrade

# Clear cache and compile
php bin/magento cache:flush
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
```

### Method 2: Manual Installation

[](#method-2-manual-installation)

1. Download or clone this repository
2. Copy the module to `app/code/Swissup/ThemeStoreViews/`
3. Run the following commands:

```
# 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
```

📖 Usage
-------

[](#-usage)

### Basic Command

[](#basic-command)

Create store views for all Swissup themes:

```
php bin/magento swissup:theme:create-storeviews
```

### Command Options

[](#command-options)

OptionShortDescription`--reinstall``-r`Run theme installers even for existing store views`--help``-h`Display help information### Examples

[](#examples)

```
# 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
```

🎨 Supported Themes
------------------

[](#-supported-themes)

The module automatically detects and processes these Swissup themes:

ThemeStore View CodeStore View NameSwissup/absolute`absolute`AbsoluteSwissup/argento-blank`argento_blank`Argento BlankSwissup/argento-essence`argento_essence`Argento EssenceSwissup/argento-flat`argento_flat`Argento FlatSwissup/argento-force`argento_force`Argento ForceSwissup/argento-home`argento_home`Argento HomeSwissup/argento-luxury`argento_luxury`Argento LuxurySwissup/argento-mall`argento_mall`Argento MallSwissup/argento-marketplace`argento_marketplace`Argento MarketplaceSwissup/argento-pure2`argento_pure2`Argento Pure2Swissup/argento-stripes`argento_stripes`Argento StripesSwissup/argentobreeze-blank`argentobreeze_blank`Argento Breeze BlankSwissup/argentobreeze-business`argentobreeze_business`Argento Breeze BusinessSwissup/argentobreeze-chic`argentobreeze_chic`Argento Breeze ChicSwissup/argentobreeze-force`argentobreeze_force`Argento Breeze ForceSwissup/argentobreeze-stripes`argentobreeze_stripes`Argento Breeze StripesSwissup/breeze-blank`breeze_blank`Breeze BlankSwissup/breeze-evolution`breeze_evolution`Breeze Evolution⚡ Features
----------

[](#-features)

### 🏪 Store View Creation

[](#-store-view-creation)

- Automatically generates valid store view codes
- Uses theme titles as store view names
- Assigns to default website and store group
- Sets appropriate sort order and status

### 🎨 Theme Application

[](#-theme-application)

- Applies the correct theme to each store view
- Updates design configuration automatically
- Maintains theme-store view relationships

### 📦 Theme Installation

[](#-theme-installation)

- Detects `etc/marketplace/installer.xml` files
- Runs Swissup Marketplace installers automatically
- Installs theme-specific content:
    - CMS Pages
    - CMS Blocks
    - Sliders (EasySlider)
    - Product Attributes
    - Configuration Settings
    - Media Files
    - Product Collections

### 🔧 Maintenance Tasks

[](#-maintenance-tasks)

- Runs `setup:upgrade --safe-mode=1`
- Executes `indexer:reindex`
- Clears all cache types
- Provides progress feedback

### 🛡️ Safety Features

[](#️-safety-features)

- Skips existing store views by default
- Non-interactive execution
- Error handling and validation
- Progress bars and status updates

### 🎨 Enhanced CLI Experience (v1.0.2+)

[](#-enhanced-cli-experience-v102)

- **Professional Output**: Colorful, styled headers with box borders
- **Real-time Progress**: Live progress bar showing current theme and statistics
- **Color-coded Status**: Green for success, yellow for warnings, red for errors
- **Live Statistics**: Current counts of created and skipped stores
- **Professional Summary**: Detailed completion report with statistics
- **Step-by-step Feedback**: Clear indicators for each post-processing step
- **Enhanced Error Messages**: Clear, colorful error reporting
- **Emoji Indicators**: Visual cues for different types of operations

🔍 How It Works
--------------

[](#-how-it-works)

1. **Discovery**: Scans for installed Swissup themes
2. **Validation**: Checks if themes exist and are properly installed
3. **Store Creation**: Creates store views with proper codes and names
4. **Theme Application**: Assigns themes to their respective store views
5. **Content Installation**: Runs marketplace installers for theme content
6. **Maintenance**: Performs setup upgrade, reindexing, and cache clearing

📁 Module Structure
------------------

[](#-module-structure)

```
app/code/Swissup/ThemeStoreViews/
├── Console/
│   └── Command/
│       └── CreateThemeStoreViews.php    # Main command class
├── etc/
│   ├── di.xml                           # Dependency injection
│   └── module.xml                       # Module configuration
├── registration.php                     # Module registration
└── README.md                           # This documentation

```

🐛 Troubleshooting
-----------------

[](#-troubleshooting)

### Store View Already Exists

[](#store-view-already-exists)

**Issue**: Store view with the same code already exists **Solution**: Use `--reinstall` flag to run installers on existing store views

```
php bin/magento swissup:theme:create-storeviews --reinstall
```

### Theme Not Found

[](#theme-not-found)

**Issue**: Theme not detected by the module **Solution**: Ensure the theme is properly installed and appears in:

```
php bin/magento theme:info
```

### Installer Not Found

[](#installer-not-found)

**Issue**: No installer.xml found for a theme **Solution**: This is normal - not all themes have installers. The module will skip installation for themes without `etc/marketplace/installer.xml`

### Permission Issues

[](#permission-issues)

**Issue**: File permission errors during installation **Solution**: Ensure proper file permissions:

```
chmod -R 755 var/
chmod -R 755 pub/static/
chmod -R 755 pub/media/
```

### Memory Issues

[](#memory-issues)

**Issue**: PHP memory limit exceeded **Solution**: The module automatically uses unlimited memory for heavy operations

📊 Output Example
----------------

[](#-output-example)

```
╔══════════════════════════════════════════════════════════════════════════════════════╗
║                    🎨 Swissup Theme Store Views Creator                           ║
╚══════════════════════════════════════════════════════════════════════════════════════╝

🚀 Starting theme store views creation process...
📊 Website: Main Website (ID: 1)
🏪 Store Group: Main Website Store (ID: 1)

📋 Processing 18 themes...
10/18 [===============>------------]  55% Processing: Swissup/argento-pure2 (10/18) | Created: 8 | Skipped: 2

🔧 Found installer for theme: Argento Pure2
📦 Installing package: swissup/theme-frontend-argento-pure2
💻 Executing: php bin/magento marketplace:package:install swissup/theme-frontend-argento-pure2 --store=27 --no-interaction
[notice] Processing swissup/theme-frontend-argento-pure2
[info] Config: Update store parameters
[info] Cms Pages: Backup existing pages
[info] CMS PAGES: Create new pages
[info] Cms Blocks: Backup existing and create new blocks
✅ Command completed!

✅ Created store view: Argento Pure2 (argento_pure2)

18/18 [============================] 100% Complete (18/18) | Created: 16 | Skipped: 2

╔═══════════════════════════════════════════════════════════════════════════════╗
║                            📊 SUMMARY REPORT                               ║
╠═══════════════════════════════════════════════════════════════════════════════╣
║ ✅ Created:  16 store views                                                  ║
║ ⏭️  Skipped:   2 existing ones                                               ║
║ 📋 Total:    18 themes processed                                            ║
╚═══════════════════════════════════════════════════════════════════════════════╝

🔧 Post-processing steps: Running required maintenance tasks...

🚀 Step 1/3: Running setup:upgrade...
🔍 Step 2/3: Running reindex...
🧹 Step 3/3: Clearing cache...
✅ Cache cleared successfully!

🎉 SUCCESS! Theme store views setup completed successfully!
╔═══════════════════════════════════════════════════════════════════════════════╗
║                        🌟 PROCESS COMPLETE 🌟                              ║
╚═══════════════════════════════════════════════════════════════════════════════╝

```

🔗 Related Commands
------------------

[](#-related-commands)

```
# List all store views
php bin/magento store:list

# Check theme installation
php bin/magento theme:info

# Manual marketplace installation
php bin/magento marketplace:package:install swissup/theme-frontend-[theme-name] --store=[store-id]

# Manual setup and maintenance
php bin/magento setup:upgrade --safe-mode=1
php bin/magento indexer:reindex
php bin/magento cache:flush
```

📄 License
---------

[](#-license)

This module follows the same license as your Magento installation and Swissup modules.

💬 Support
---------

[](#-support)

For issues related to:

- **This module**: Contact your development team
- **Swissup themes**: Visit [Swissup Documentation](https://docs.swissuplabs.com/)
- **Magento core**: Check [Magento DevDocs](https://devdocs.magento.com/)

---

**Version**: 1.0.2
**Compatible**: Magento 2.4.x
**Created**: 2025

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance72

Regular maintenance activity

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~50 days

Total

4

Last Release

158d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ab4f2dec3a1f190e9cb29a563d9c6b41827f55fe46099c69d8eef177de8b624?d=identicon)[rommmka](/maintainers/rommmka)

---

Top Contributors

[![rommmka](https://avatars.githubusercontent.com/u/1327047?v=4)](https://github.com/rommmka "rommmka (8 commits)")[![ci-swissuplabs](https://avatars.githubusercontent.com/u/40459861?v=4)](https://github.com/ci-swissuplabs "ci-swissuplabs (1 commits)")

---

Tags

automationinstallerthemesmagento2breezemarketplaceswissupstore-viewsargento

### Embed Badge

![Health badge](/badges/swissup-module-theme-store-views/health.svg)

```
[![Health](https://phpackages.com/badges/swissup-module-theme-store-views/health.svg)](https://phpackages.com/packages/swissup-module-theme-store-views)
```

###  Alternatives

[rector/rector

Instant Upgrade and Automated Refactoring of any PHP code

10.3k123.1M6.0k](/packages/rector-rector)[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[symplify/easy-coding-standard

Use Coding Standard with 0-knowledge of PHP-CS-Fixer and PHP\_CodeSniffer.

1.6k34.6M1.5k](/packages/symplify-easy-coding-standard)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[swissup/module-marketplace

One-Click modules and themes downloader/installer

18383.8k2](/packages/swissup-module-marketplace)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
