Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Commerce Add To Cart Link

2,656 sites Security covered Drupal 10–11 Commerce ecosystem
View on drupal.org

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.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Release Timeline

Releases

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