This Magento 2 module adds the ability to display a short message under the “Add to Cart” button on the product page. The value comes from a selected product attribute (by default addtocart_description).
The module adds the product attribute addtocart_description via a data patch and provides a configuration option where you can select another attribute to display. The attribute list in configuration is limited to the types text, textarea, and select. For select attributes, the option label is displayed; for text-based attributes, the raw field value is shown.
The output works on product pages for: simple, configurable, and bundle products. The block is placed around the Add to Cart section and can be enabled per store view.
addtocart_description (data patch).text, textarea, select).addtocart_description by default if no other attribute is selected.Type: Composer
* = in production, use the --keep-generated option
composer config repositories.module.addtocart.description vcs https://github.com/kowalco/addtocart-descriptioncomposer config --global --auth github-oauth.github.com <YOUR_TOKEN>composer require kowal/module-addtocartdescriptionphp bin/magento module:enable Kowal_AddtocartDescriptionphp bin/magento setup:upgradephp bin/magento cache:flushStores -> Configuration -> kowal -> Add to Cart Description -> SettingsEnable module (enables/disables the display)Product Attribute to Display (select the attribute to show)addtocart_description attribute appears in the product EAV. If the attribute is not visible in the product edit form, check the attribute set and the General group.select. If you want to store free text, choose another attribute of type text or textarea in configuration.catalog_product_view, catalog_product_view_type_configurable, catalog_product_view_type_bundle.Kowal_AddtocartDescription::addtocart-description.phtml and the HTML is escaped.bin/magento cache:flush. For static changes in production, also run bin/magento setup:static-content:deploy according to your deployment policy.Stores -> Configuration -> kowal -> Add to Cart Description. Access is controlled by ACL Kowal_AddtocartDescription::config_kowal_addtocartdescription.Enable = 1, attribute_code = addtocart_description (from etc/config.xml).bin/magento module:enable Kowal_AddtocartDescription.bin/magento setup:upgrade (creates the addtocart_description attribute).bin/magento cache:flush.bin/magento setup:static-content:deploy.setup:upgrade and cache cleaning after deploying the module.bin/magento module:disable Kowal_AddtocartDescription.addtocart_description attribute (manually or via a patch revert in a controlled process).kowal/base.Magento_Catalog.addtocart_description attribute is created by a data patch during setup:upgrade.Magento_Catalog and kowal/base modules to be present.Product page (reference): https://kowal.store/en/modul-magento-2-opis-pod-przyciskiem-dodaj-do-koszyka
Q: The description doesn’t show on the product — what should I check?
A: Check that the module is enabled, the attribute has a value on the product, the configuration is set for the correct store view, and the cache has been cleared.
Q: Can I use my own attribute?
A: Yes—select it in configuration. The list shows only attributes of type text, textarea, and select.