Magento 2 Module – Description Under 'Add to Cart' Button

€42.63 €34.66
Expandable module
M2-DESC-ADD-TO-CART
Przelew Przelew
PayPal PayPal

YOU CAN TRUST US

25 years of experience in e-commerce and Magento 2

Tooltip

Fast delivery

Tooltip

Efficient implementation process

Tooltip

Simple and transparent complaint process

Tooltip

Working with clients worldwide

Tooltip

Free module updates

Tooltip

Payment by bank transfer

Tooltip

The Kowal_AddtocartDescription module introduces a simple yet exceptionally useful feature to your Magento 2 store – the ability to display a short description or message right under the 'Add to Cart' button.

This allows you to clearly convey important information to the customer at a key purchasing decision moment – without cluttering the page with additional elements.

Applications

  • Displaying information about delivery time or product availability.
  • Highlighting offer advantages – e.g., free shipping or secure shopping.
  • Indicating promotions or unique product features.
  • Customer messages such as 'Product only available in-store' or 'Ships in 24h'.

Benefits for Store Owners

  • Improved Shopping Experience (UX): the customer sees key information without needing to scroll.
  • Increased Trust: shipping and warranty information positively influence purchase decisions.
  • Flexibility: you can choose which product attribute to display under the button.
  • Universal Application: works for simple, configurable, and bundle products.

Appearance and Aesthetics

The description is displayed in an elegant frame with an information icon ℹ️ in the corner. The style is consistent with Magento's appearance and requires no additional configuration.

Summary

This small addition significantly enhances shopping comfort and offer clarity. A minor detail – a big difference in your store's perception.

Write Your Own Review
You're reviewing:Magento 2 Module – Description Under 'Add to Cart' Button
Your Rating

Wersja: 1.0.6

14.02.2026

Ulepszenia

  • Przeniesiono logikę pobierania i przygotowania wartości atrybutu z phtml do dedykowanego bloku:
    Kowal\AddtocartDescription\Block\Product\AddtocartDescription.
  • Zmieniono klasy bloków w layoutach produktu na nowy blok modułu (simple/configurable/bundle), zgodnie z dobrymi praktykami Magento.
  • Uproszczono szablon addtocart-description.phtml do warstwy prezentacji.

Obsługa atrybutów

  • Poprawiona obsługa atrybutów:
    • select (renderowanie etykiety opcji),
    • text,
    • textarea.
  • Wartość atrybutu jest zawsze przetwarzana przez filtr CMS (FilterProvider->getPageFilter()->filter()), co umożliwia poprawne renderowanie treści z PageBuildera i dyrektyw CMS.

Zmiany techniczne

  • Usunięto użycie ObjectManager z szablonu frontendowego.
  • Zachowano sterowanie wyświetlaniem przez konfigurację:
    addtocartdescription/settings/enable oraz addtocartdescription/settings/attribute_code.

Wpływ na wdrożenie

  • Brak zmian w strukturze bazy danych.
  • Brak nowych cronów/queue/indexerów.
  • Zalecane po wdrożeniu: bin/magento cache:flush.
Aktualizacja preferencji plików cookie