Custom Text Below the Add to Cart Button for Magento 2

Add an attractive description, unit of measure information, purchase multiple, or product message under the Add to Cart button.
Compatibility
2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
Hyvä theme
Hyvä compatible
€15.38
per item
Email to a Friend

Enquire about this product

Description / Custom Text Below the Add to Cart Button for Magento 2

MAGENTO 2 · PRODUCT PAGE · MESSAGES · UX

Show an important message at the purchase decision point.

Kowal Add to Cart Description

Display the content of a selected product attribute in the purchase button area. Inform customers about delivery, a promotion, or offer highlights without sending them to other sections of the page.

Selected attribute · Product content · Information box

HOW IT WORKS IN PRACTICE

01 · Choose the content source
In the configuration, you select a product attribute.

02 · Add the message
You add the relevant information to the product.

03 · The customer sees it while buying
The block appears in the purchase form area.

What does your store gain?

Explore the module’s features, use cases, and settings.

Meet the module

The Kowal_AddtocartDescription module adds a simple yet highly useful feature to your Magento 2 store: the ability to display a short description or message directly under the Add to Cart button.

This lets you clearly communicate important information to the customer at the key purchase decision moment, without overloading the page with additional elements.

Use cases

  • Display information about delivery time or product availability.
  • Highlight offer advantages, such as free shipping or secure shopping.
  • Point out promotions or unique product features.
  • Customer messages such as Product available only in our store or Ships in 24h.

Benefits for the store owner

  • Better shopping experience (UX): the customer sees key information without needing to scroll the page.
  • Increased trust: shipping and warranty information has a positive impact on the purchase decision.
  • Flexibility: you can choose which product attribute should be displayed under the button.
  • Universal use: works for simple, configurable, and bundle products.

Appearance and aesthetics

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 addition has a significant impact on shopping comfort and offer clarity. A minor detail can make a major difference in how customers perceive your store.

Configuring the source and empty values

In Stores → Configuration → Kowal → Add to Cart Description, you enable the module and select the Product Attribute to Display. If no selection is made, the code uses addtocart_description.

The block does not render a message if the product has no value or the attribute does not exist. For fields with an option source, it can read their label; the content passes through the Magento filter, which also supports CMS directives.

Position depends on the product type and theme

The package has separate layout settings for standard, configurable, and bundle products. For a configurable product, it uses the options area, and for a bundle product, the bundle options wrapper.

Therefore, the exact position relative to the button should be checked in the specific theme. The appearance includes a box and an information icon; the message is based on the current product’s data, with no confirmed automatic replacement after selecting a variant.

Installation via Composer

Package kowal/module-addtocartdescription, module Kowal_AddtocartDescription. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to the store’s process.

From configuration to result

1. Choose the content source
In the configuration, you select a product attribute.

2. Add the message
You add the relevant information to the product.

3. The customer sees it while buying
The block appears in the purchase form area.

Ships in 24 hours next to the purchase button

In the product attribute, you enter Ships in 24h or information about free delivery. The customer sees the message next to the purchase form.

You keep the content consistent with the actual offer. The module displays data — it does not calculate the delivery time on its own.

Give customers the most important information at the time of purchase

Want to adapt the module to your store? Ask about implementing Kowal Add to Cart Description and discuss the configuration or required extensions.

More Information

Hyvä theme Hyvä compatible
Theme compatibility Hyvä, Luma / Blank, KOWAL

Change Log

Version: 1.0.6

14.02.2026

Improvements

  • Moved the logic for retrieving and preparing the attribute value from phtml to a dedicated block:
    Kowal\AddtocartDescription\Block\Product\AddtocartDescription.
  • Changed product layout block classes to the module’s new block (simple/configurable/bundle), in line with Magento best practices.
  • Simplified the addtocart-description.phtml template to the presentation layer.

Attribute support

  • Improved attribute support:
    • select (rendering the option label),
    • text,
    • textarea.
  • The attribute value is always processed by 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.
  • Kept display control through configuration:
    addtocartdescription/settings/enable and addtocartdescription/settings/attribute_code.

Deployment impact

  • No changes to the database structure.
  • No new cron/queue/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 your account email address 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-addtocartdescription

Completing the installation

After installing the package, update Magento and clear the cache:

php bin/magento setup:upgradephp bin/magento cache:flush

In a production environment, also run DI compilation and deploy static files according to your store deployment process.

Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Custom Text Below the Add to Cart Button for Magento 2
Your Rating:
Price
Quality
Support
loader
Loading...

You submitted your review for moderation.

Related Posts

How to Build a High-Converting Magento 2 Product Page: Segments That Drive Sales (UX, Trust, SEO)

How to Build a High-Converting Magento 2 Product Page: Segments That Drive Sales (UX, Trust, SEO)

6 min read 4 views
Teoria + praktyka: jak ułożyć kartę produktu, żeby sprzedawała. UX, zaufanie, obiekcje, treści, SEO i social share.
Read more
Update cookie preferences