smile / module-custom-entity-product-link
smile/module-custom-entity-product-link
Smile - Custom Entity Product link Module
Custom Entity Product Link Management 
What is Custom Entity Product Link Magento 2 Module?
This module allow possibility to create a product attribute with Frontend Input Custom Entity, which allows you to link a product to custom entities and :
- show custom entities in product detail (or/and product listing)
- show products on custom entity page
Who is developing this module ?
[image: Smile]
This module is built by Smile.
Smile is the European leader of Open Source and also a four-times Europe Partner of the the Year (2010-2014), two-times Spirit of Excellence (2015-2016), Global Elite Partner (2017-now), and Regional Commercial Partner (2018) awarded by Magento.
Our multidisciplinary team brings together experts in technology, innovation, and new applications.
Together we explore, invent, and test technologies of the future, to better serve our clients.
Main Features
- An new frontend input in product attribute
[image: Product attribute form]
- Show custom entity in product page and product listing
[image: Custom entity attribute in product page]
[image: Product attribute in product listing]
- A filter by custom entity
[image: Product layered navigation]
- Product listing in custom entity page
[image: Custom entity page with product listing]
Documentation
Documentation is available here.
The User Guide is also available on PDF format here
Contributing
You can contribute to this module by submitting issues or pull requests.
For more details, please take a look at the contribution guidelines.
Changelog
All notable changes are recorded in this changelog.
Standards & Code Quality
Smile Lab Quality Suite (Magento) provides coding standards / rulesets that can be used on Magento projects.
Changelog
All notable changes to this project will be documented in this file.
1.4.4 - 2024-02-14
- Use ui-select input type for smile_custom_entity attributes
1.4.3 - 2024-01-09
- Fix return type on the cart price rule creation BO page
- Fix error on attribute creation
1.4.3 - 2024-01-09
- Fix return type on the cart price rule creation BO page
- Fix error on attribute creation
1.4.2 - 2023-09-19
- Fix explode php error
1.4.1 - 2023-09-19
- Fix __construct for php 7.4
1.4.0 - 2023-09-19
- From this release, product attribute linked to custom entities will not save their value in a custom table anymore.
They will use the standard table of Magento (catalog_product_entity_text).
This change makes possible to integrate these attributes in rule engine (promo, virtual category, optimizers),
and allows to have different value for different stores.
1.3.9 - 2023-07-19
- Add attribute id as catalog_product_custom_entity_link
1.3.8 - 2022-12-02
- Fix Zend Db Expression
1.3.7 - 2022-11-21
- Add github actions workflow
1.3.6 - 2022-10-19
- Add Smile Lab Quality Suite
- Analyse code style with phpcs / phpmd / phpstan command
- Add db_schema.xml instead InstallSchema
1.3.5 - 2022-09-20
- Fix return on _getSearchEntityIdsSql function on Model/ResourceModel/Search/CustomCollection.php
1.3.4 - 2022-09-14
- Specify php version on composer.json
- Use Escaper on templates
1.3.3 - 2022-09-06
- Add use for classes and use type hints on functions
1.3.2 - 2022-09-01
- Add strict types on php files
- Remove disclaimer / annotation comments
- Add .gitattributes and update .gitignore
1.3.1 - 2022-08-23
- Allow more recent version of custom-entity module to be used (Eg for Magento 2.4.4)
- Add CONTRIBUTING.md
- Update README.md
1.3.0 - 2020-10-01
- Allow more recent version of custom-entity module to be used (Eg for Magento >=2.3.5)
1.2.1 - 2020-08-19
- Update composer.json #25
1.2.0 - 2020-03-31
- Update requirements of custom entities module
1.1.2 - 2020-03-27
- Remove explicit PHP requirements.
1.1.1 - 2020-01-14
- Fix the admin search (#23 thanks @maxcortyl)
1.1.0 - 2019-05-09
- Use latest ElasticSuite
1.0.0 - 2019-05-06
- Initial Release
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.4.4 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2024-02-14 09:20:23 |
| 1.4.3 | stable | Not tested | Not yet tested Details | 2024-01-09 14:44:18 |
| 1.4.2 | stable | Not tested | Not yet tested Details | 2023-09-19 14:51:21 |
| 1.4.1 | stable | Not tested | Not yet tested Details | 2023-09-19 12:28:08 |
| 1.4.0 | stable | Not tested | Not yet tested Details | 2023-09-19 09:33:29 |
| 1.3.9 | stable | Not tested | Not yet tested Details | 2023-07-19 16:13:32 |
| 1.3.8 | stable | Not tested | Not yet tested Details | 2022-11-25 16:19:33 |
| 1.3.7 | stable | Not tested | Not yet tested Details | 2022-11-21 15:59:30 |
| 1.3.6 | stable | Not tested | Not yet tested Details | 2022-10-19 13:52:08 |
| 1.3.5 | stable | Not tested | Not yet tested Details | 2022-09-20 15:53:57 |
| 1.3.4 | stable | Not tested | Not yet tested Details | 2022-09-14 13:29:04 |
| 1.3.3 | stable | Not tested | Not yet tested Details | 2022-09-06 14:36:57 |
| 1.3.2 | stable | Not tested | Not yet tested Details | 2022-09-01 15:14:31 |
| 1.3.1 | stable | Not tested | Not yet tested Details | 2022-08-23 13:28:46 |
| 1.3.0 | stable | Not tested | Not yet tested Details | 2020-10-01 09:31:18 |
| 1.2.1 | stable | Not tested | Not yet tested Details | 2020-08-19 14:32:17 |
| 1.2.0 | stable | Not tested | Not yet tested Details | 2020-03-30 22:03:22 |
| 1.1.2 | stable | Not tested | Not yet tested Details | 2020-03-27 12:34:16 |
| 1.1.1 | stable | Not tested | Not yet tested Details | 2020-01-14 12:35:08 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2019-05-09 14:49:16 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2019-05-06 11:04:22 |
Requires 3
| Package | Constraint |
|---|---|
| php | ^7.4 || ^8.1 |
| smile/module-custom-entity | ^1.3 |
| smile/elasticsuite | ^2.8.0 |
Requires-dev 1
| Package | Constraint |
|---|---|
| smile/magento2-smilelab-quality-suite | ^3.0 |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from smile
View vendorMagento 2 merchandising and search engine built on ElasticSearch
Smile - Custom Entity Akeneo Module
Extension of Magento2 Sales Rule to provide gifted (free) products with magento/module-sales-rule-staging.
Smile Retailer Offer Inventory
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.