Magento 2 Module – Description Below the Add to Cart Button
- SKU
- M2-DESC-ADD-TO-CART
Description / Magento 2 Module – Description Below the Add to Cart Button
The Kowal_AddtocartDescription module adds a simple but highly useful feature to your Magento 2 store – the ability to display a short description or message directly below the Add to Cart button.
This lets you clearly communicate important information to the customer at the key moment of the purchase decision – without overloading the page with additional elements.
Use Cases
- Display information about delivery time or product availability.
- Highlight offer benefits, such as free shipping or secure shopping.
- Show promotions or unique product features.
- Customer messages such as Product available only in our store or Ships within 24h.
Benefits for the Store Owner
- Better shopping experience (UX): customers see key information without having to scroll the page.
- Increased trust: shipping and warranty information positively influences the purchase decision.
- Flexibility: you can choose which product attribute should be displayed below the button.
- Universal use: works for simple, configurable, and bundle products.
Appearance and Design
The description is displayed in an elegant box with an information icon ℹ️ in the corner. The style is consistent with the Magento look and requires no additional configuration.
Summary
This small add-on has a significant impact on shopping comfort and offer clarity. A small detail – a big difference in how your store is perceived.
More Information
| Template compliance | Luma / Blank, Blacksmith |
|---|
Change Log
Version: 1.0.6
02/14/2026
Improvements
- Moved the logic for retrieving and preparing the attribute value from phtml to a dedicated block:
Kowal\AddtocartDescription\Block\Product\AddtocartDescription. - Changed block classes in product layouts to the new module block (simple/configurable/bundle), in line with Magento best practices.
- Simplified the addtocart-description.phtml template to the presentation layer.
Attribute handling
- Improved handling of attributes:
- select (rendering the option label),
- text,
- textarea.
- The attribute value is always processed through the CMS filter (FilterProvider->getPageFilter()->filter()), which enables proper rendering of PageBuilder content and CMS directives.
Technical changes
- Removed the use of ObjectManager from the frontend template.
- Retained display control through configuration:
addtocartdescription/settings/enable and addtocartdescription/settings/attribute_code.
Deployment impact
- No changes to the database structure.
- No new cron jobs/queues/indexers.
- Recommended after deployment: bin/magento cache:flush.
Module Installation Instructions
Installation via Composer
You will receive the Composer repository access details (customer email address and license token) by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with the email address of your account and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.
composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-addtocartdescriptionCompleting the installation
After installing the package, update Magento and clear the cache:
php bin/magento setup:upgradephp bin/magento cache:flushIn a production environment, also run DI compilation and deploy static files according to your store deployment process.