A purchase note in Magento 2: units, packaging and a short message

2 min read

Silver 3D illustration with accents: blue and yellow — Magento 2 Module – Description Under the Add to Cart Button

A short purchase note can explain package contents or point to a product detail. Kowal Add to Cart Description reads the message from the current product’s attribute, avoiding changes to the entire main description.

Define the data and scope

Before changing anything, record the SKU, store view, customer group and currency. Choose one control product and note its initial state. This keeps the comparison tied to the same data rather than two similar screens with different settings.

Prepare the configuration

Enable the extension under Stores → Configuration → Kowal → Add to Cart Description and select Product Attribute To Display. The fallback code is addtocart_description. Populate the appropriate product and store-view value. For an attribute with a source list, verify the displayed option label rather than assuming the stored identifier will be shown.

Start in a test environment using the theme and buying process actually used by the store. Change one setting at a time. Record both the selected configuration scope and any inherited value so another administrator can reproduce the result.

Run a concrete scenario

Enter “This package contains 12 items”, inspect the phone layout and add the product to the cart. Then clear the attribute: the note should disappear. Check configurable and bundle products separately because insertion points depend on their layout and the active theme.

Keep the result before and after the change. Repeat the exercise with a qualifying product and a case that should remain unaffected. For multiple store views, also check the message language and pricing context.

Check boundaries and accept the implementation

The note does not enforce quantity increments, convert prices or calculate delivery dates. Do not assume its content changes automatically after selecting a variant. Content passes through Magento’s filter and can support CMS directives, so inspect the rendered result as well as the saved text.

For acceptance, retain the settings, expected result, observed result and test date. Describe discrepancies with a concrete example. After release, check the same journey on a phone and after reopening the page with the cache in use.

Related stages of the process

Unit pricing and a purchase note solve different problems. Unit Pricing calculates displayed values; the note explains packaging. A text message alone does not enforce quantities or change the transaction price. See Sales Units and Price Conversion for Magento 2 and the guide Price per item and package in Magento 2: checking unit conversions.

Check features and configuration in the offering for Magento 2 Module – Description Under the Add to Cart Button.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)