Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module provides a simple "add to cart" link for products, ideal for use on product listing pages or blocks. It offers a streamlined way to add items to the cart without a full form and can also be used to add items to a wishlist.

The Commerce Add To Cart Link module extends Commerce product displays with an "add to cart" field as link instead of having an add to cart form.

Primary use case is to use this on listings such as overview pages or blocks displaying related products, bestsellers, etc. Currently, building product listing blocks is often accompanied with some headache due to existing Drupal Core limitations described below.

The links are secured with a CSRF token, so that users can't be tricked into clicking a link and adding products to cart they don't want. In order to have these tokens working accordingly, a session for anonymous user will be enforced, if there isn't one existing already.

The "Commerce Add To Wishlist Link" sub module offers the same functionality for adding items to wishlists (you will also need Commerce Wishlist module for that).

The link itself is rendered via Twig template to enable full customization possibilities for themers, enabling to change texts, add additional markup, etc.

Please see the README.md file for a more detailled explanation and configuration options.

The module is only available for Drupal 8.x and Commerce 2.x and won't be backported.

Credits

Commerce Product Review module was originally developed and is currently
maintained by Mag. Andreas Mayr.

All initial development was sponsored by agoraDesign KG.

Activity

Total releases
3
First release
Feb 2025
Latest release
2 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.1.2 Stable May 6, 2026
2.1.1 Stable Nov 11, 2025
2.1.0 Stable Feb 24, 2025