PHPackages                             bkozlic/configurable-options - 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. bkozlic/configurable-options

ActiveMagento2-module

bkozlic/configurable-options
============================

Magento 2 module for configurable product

2.0.0(4y ago)182.6k↓100%4[1 issues](https://github.com/Beraa995/configurable-product-options/issues)OSL-3.0PHP

Since Nov 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Beraa995/configurable-product-options)[ Packagist](https://packagist.org/packages/bkozlic/configurable-options)[ RSS](/packages/bkozlic-configurable-options/feed)WikiDiscussions master Synced today

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Magento 2 Configurable Options
==============================

[](#magento-2-configurable-options)

This module provides functionality for preselecting configurable product options and updating attribute values from selected simple product.

Installation
------------

[](#installation)

`composer require bkozlic/configurable-options`

`php bin/magento setup:upgrade`

Usage
-----

[](#usage)

### Admin system configuration

[](#admin-system-configuration)

#### Go to Admin Panel -&gt; Stores -&gt; Configuration -&gt; Catalog -&gt; Configurable Options

[](#go-to-admin-panel---stores---configuration---catalog---configurable-options)

OptionFunctionalityEnableEnable or disable complete module functionality.Simple Product ImagesSet if images of selected simple products will be prepended to configurable images or they will replace them.Preselect Product OptionsEnable or disable option preselect after product page is loaded.Update Simple Product AttributeEnable or disable update of attribute values for selected simple product.AttributesSet as many attributes as you want. You need to specify attribute code, html selector where value will be placed and choose if value should be updated asynchronously or not. Works only if previous option is set to "Yes".### Set custom product for preselect

[](#set-custom-product-for-preselect)

Open configurable product in Admin. Under "Simple Product Preselect" fieldset you can select specific simple product to preselect after product page is loaded.

### Modify attribute values

[](#modify-attribute-values)

You can use modifier functionality to modify product's attribute value. Take, for example, the product sku. If you want to display sku value with prefix, suffix or something different you can do this.

Add modifier in the di.xml. There is already default modifier in the module which you can take as an example.

```

                Vendor\Module\Model\Modifier\ModifierName
                10

```

Sort order defines in which order modifiers from the pool will be executed.

Modifier class must implement `\BKozlic\ConfigurableOptions\Model\ModifierInterface`

```
    public function processValue(string $attributeCode, ProductInterface $product, string $cssSelector, $value)
    {
        // Update value
    }

```

### Add custom values

[](#add-custom-values)

If you want to add value for the products but there is no attribute for it, you can do it with modifier.

- Add custom non-existing attribute code in the store configuration under Attributes fields.
- Create a custom modifier class and add it to the di.xml.
- In the modifier's processValue function check if attribute code is equal to the code you added in configuration and add value you want to display to the frontend.

By default, product name and sku are updated after simple product is preselected.

Recommendations
---------------

[](#recommendations)

It is recommended to set async load for attributes with a big values and attributes which will be added in the html element not visible until you scroll.

Prerequisites
-------------

[](#prerequisites)

- Magento &gt;= 2.3.2

Developers
----------

[](#developers)

- [Berin Kozlic](https://github.com/Beraa995)

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~67 days

Total

5

Last Release

1695d ago

Major Versions

1.0.3 → 2.0.02021-08-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3b9b38dd3882f2d086101c0d73d2616971f3324405f61bf215e106c36e5e823?d=identicon)[beraa995](/maintainers/beraa995)

---

Top Contributors

[![Beraa995](https://avatars.githubusercontent.com/u/25039945?v=4)](https://github.com/Beraa995 "Beraa995 (7 commits)")

### Embed Badge

![Health badge](/badges/bkozlic-configurable-options/health.svg)

```
[![Health](https://phpackages.com/badges/bkozlic-configurable-options/health.svg)](https://phpackages.com/packages/bkozlic-configurable-options)
```

PHPackages © 2026

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