In Magento 2, associated products are widely used in configurable products and bundled products. However, some store owners face an issue where associated products do not appear when custom options are added. This can be confusing and may look like a bug in Magento.
Understanding the Issue
- When you add a required custom option to a product, Magento may fail to display associated products correctly.
- This is due to a limitation in earlier Magento versions where required custom options conflicted with product association logic.
- As a result, customers could not see or select associated products if a required custom option was present.
Magento Bug and Fix
This was a known bug in Magento 2 before version 2.2.4. The Magento team fixed the issue in Magento 2.2.4, so upgrading your store is the most reliable solution.
Workarounds for Older Versions
- Use Non‑Required Custom Options: If possible, set your custom option to non‑required so associated products can display.
- Upgrade Magento: Update to Magento 2.2.4 or later where the bug is fixed.
- Custom Module Override: Developers can override product option validation logic to allow associated products with required options.
Practical Example
Suppose you have a configurable product “T‑Shirt” with associated products for different sizes. If you add a required custom option like “Gift Wrap” or “Custom Text,” the associated size options may not appear. By making the custom option non‑required or upgrading Magento, the associated products will show correctly.
Best Practices
- Always test associated products after adding custom options.
- Keep Magento updated to avoid known bugs.
- Use staging environments to test changes before applying them to live.
- Document any custom overrides for future maintenance.
SEO & UX Benefits
- Ensures customers can select product variations without confusion.
- Improves conversion rates by reducing checkout errors.
- Maintains a professional and reliable shopping experience.
Troubleshooting Checklist
- Check if your Magento version is older than 2.2.4.
- Verify if the custom option is marked as required.
- Test with a non‑required option to confirm the issue.
- Review logs in
var/logfor related errors.
Conclusion
The “Associated Product with Custom Option Not Showing” issue in Magento 2 is a known bug in earlier versions. The simplest fix is to upgrade to Magento 2.2.4 or later. For older versions, using non‑required custom options or applying a developer override can help. By resolving this issue, you ensure customers can view and select associated products smoothly, improving both user experience and sales.